473,382 Members | 1,396 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Program security (preventing sharing)

2
Hi there,

I have written a program in VB 6.0 and I want to sell it to a client. I do not wish that the client distributes my program to someone else. Can anyone guide me to code in a program that will recognise only that clients computer to whom I am selling it to?

Pls help.
Sep 28 '07 #1
5 1302
jamesd0142
469 256MB
Hi there,

I have written a program in VB 6.0 and I want to sell it to a client. I do not wish that the client distributes my program to someone else. Can anyone guide me to code in a program that will recognise only that clients computer to whom I am selling it to?

Pls help.
Im new to vb.net but...

i dont know how to do it but how about detecting their windows seriel key.

you could...

detect the seriel key encrypt it and store in a txt file, then everytime the programme loads retrieves the seriel key, encrypt it again and run a compare statement to check if it matches that stored in the text file.

Thanks
thanks
Sep 28 '07 #2
Ali Rizwan
925 512MB
Im new to vb.net but...

i dont know how to do it but how about detecting their windows seriel key.

you could...

detect the seriel key encrypt it and store in a txt file, then everytime the programme loads retrieves the seriel key, encrypt it again and run a compare statement to check if it matches that stored in the text file.

Thanks
thanks
Two persons also have same key or they can solve it by using the same copy of windows.
I think if we use the computer name it can solve the problem or computer configuartion or any thing else but not windows serial key.
OK
GOODLUCK
Sep 28 '07 #3
Killer42
8,435 Expert 8TB
Two persons also have same key or they can solve it by using the same copy of windows.
If that's the case, then at least one of them is an illegal copy and you should not support it.
Oct 1 '07 #4
kZero
23
Try this code

Expand|Select|Wrap|Line Numbers
  1. Private Declare Function GetVolumeInformation Lib "Kernel32" Alias "GetVolumeInformationA" (ByVal lpRootPathName As String, ByVal lpVolumeNameBuffer As String, ByVal nVolumeNameSize As Long, lpVolumeSerialNumber As Long, lpMaximumComponentLength As Long, lpFileSystemFlags As Long, ByVal lpFileSystemNameBuffer As String, ByVal nFileSystemNameSize As Long) As Long
  2. Private Sub Form_Load()
  3.     Dim Serial As Long, VName As String, FSName As String
  4.     VName = String$(255, Chr$(0))
  5.     FSName = String$(255, Chr$(0))
  6.     GetVolumeInformation "C:\", VName, 255, Serial, 0, 0, FSName, 255
  7.     VName = Left$(VName, InStr(1, VName, Chr$(0)) - 1)
  8.     FSName = Left$(FSName, InStr(1, FSName, Chr$(0)) - 1)
  9.     Serial = Replace(Trim(Str$(Serial)), "-", "")
  10.     MsgBox "Your Serial Number is " & Serial
  11.     x = InputBox("Enter Activation Code for the serial " & Serial)
  12.     ''' Make other Application for you to make the activation code and put in it this small code
  13.     ' Serial = the serial that the customer will give you
  14.    ' Activation = Val(Serial) * 50 / 5454 + 1542
  15.     If x = Val(Serial) * 50 / 5454 + 1542 Then MsgBox "Activated" Else MsgBox "Invalid Activation Code"
  16. End Sub
Oct 1 '07 #5
Savio
2
Thanks kZero. Shall try this out and see what I can do.

Try this code ...
Oct 3 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: andthen | last post by:
I read the following in the Thread API: When a Java Virtual Machine starts up, there is usually a single non-daemon thread (which typically calls the method named main of some designated class)....
22
by: Alistair | last post by:
hello again oh knowledgable ones Today I took the plunge (more like a hell-hole dive) and upgraded to windows XP Pro.. and as I expected things are slightly different... what I didn't...
0
by: tstephan | last post by:
In the past we have used the classic nTier design with COM+, SQL Server and MFC. We are currently working on a new project with an opportunity to use .NET, ADO.NET, etc. One of the areas where I...
116
by: Mike MacSween | last post by:
S**t for brains strikes again! Why did I do that? When I met the clients and at some point they vaguely asked whether eventually would it be possible to have some people who could read the data...
6
by: Ken Galer | last post by:
I am working on a small project that I started at home. It originally was on the C: drive and was working properly. After bringing it to work I placed it in a folder on the server with the other...
5
by: Nikhil Patel | last post by:
Hi all, My Asp.Net application gives System.UnauthorizedAccessViolation exception when It tries to write a word document to a special folder I created for storing word documents. It says ASPNET...
2
by: Jack | last post by:
Hi, I have copied a web based application to a new laptop having windows xp professional. Now in one of the folders where the database is physically located, I want to give IUSR_Computermachine...
43
by: davidkoree | last post by:
I mean not about cookie. Does it have something to do with operating system or browser plugin? I appreciate any help.
7
by: chowdary | last post by:
I am developing a PHP-mysql database. It is noted that when the browser window is refreshed the data is inserted again in the database. unfortunately there is no unique keys that I can use to...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.