The demoversion has differences from the final version. The final version is developed individually.
The complex is intended for programmers of various level of preparation with knowledge of programming languages Borland C ++, Microsoft Visual C ++, BorlandDelphi, Microsoft Visual Basic. The complex means to distinguish in an original way written down CD disks created by the author (not DVD) and on the basis of it it is possible to do a binding to defined to CD disk. It will allow to avoid duplicating of an author's disk and to make a reliable binding of the program to delivered CD. The complex contains SDK with realisation examples in languages Visual C ++ and Borland Delphi.
COMPLEX CONTENTS
- The program which reads out unique number with CD disk. Sm drawing
- Library which is capable to be connected to any project written on languages Borland C ++, Microsoft Visual C ++, Borland Delphi, Microsoft Basic.
- Examples of connection of library with use of various programming languages.
SEQUENCE OF WORK
- Create the project and connect library look examples SDK.
- In library there is only one caused function:
GetCdInfo (LPTSTR szName, LPTSTR szKey, long nType, long nNum);
- The library returns numerical value depending on the received data:
Returned values for the time version:
0 - the Error. (The user has pressed Cancellation, Has pressed Îê but did not enter data)
1 - All APPRX. (the User has entered correct data)
2 - Data do not coincide. (The entered data do not coincide with data on a disk)
For the registered version:
0 - the Error. (The user has pressed Cancellation, Has pressed Îê, but did not enter data) (Returned value is established by the programmer on certain algorithm)
Õ - All APPRX. (the User has entered correct data)
Õ - Data do not coincide. (The entered data do not coincide with data on a disk)
There is a special action at which 0 (error) only in the registered version will always come back.
Program use
We start the program Reception of a key from disk CreateKeyCD.exe We insert the written down disk into CD a drive. We press the button «to obtain data with CD disk». In the top line unique number of the written down disk is visible. Number cannot be received with DVD a disk or from a disk which is copied. Each new written down disk will have unique number. This number will be as is kept in a directory, in a file cd_key.txt
Unpack and deliver this number with a disk.
To your program "fasten" library tie.dll as is shown in an example in directory SDK and cause in the appendix function GetCdInfo (LPTSTR szName, LPTSTR szKey, long nType, long nNum);
If the library is not registered that all parametres can be any, for example:
GetCdInfo (“Vasya”, ”Pupkin”, 0, 0);
In this case the library will return values as is told above.
If you have bought a complex it is necessary for you at data acquisition from a disk to enter in the bottom line a key, which you receive at registration and as to transfer this key as the second parametre.
For example:
GetCdInfo (“a registration Name”, ”a registration Key”, 0, 0);
At reception of registration data the mechanism at which you can create returned values library will be informed. If you will not accept the current mechanism specially for you release of library with the mechanism offered by you is possible.
Returned value is regulated by the third and fourth parametre.
In not registered version it is possible to transfer any values, they do not influence library work. The library works in a demonstration mode and does not use transferred parametres.
With the program on key reception the file reg_code.ini after reception of registration data is delivered, enter the received key in section:
[REG]
CODE = Here It will be necessary to enter the received key
The entered key in this file and a key which will be transferred libraries in the second parametre should be identical! Otherwise data will not coincide.
RESULT
This complex can be used as alternative and more economic variant against a variant with a binding to ôëåøêå and ò.ä.
Application examples. You deliver the program on CD, an author's disk which has unique number.
After primary registration of the program (you can use the mechanisms of registration), the user uses the program some time.
Under certain circumstances or through certain time you can request original CD disk which delivered earlier. If the disk mismatches the original you can undertake any actions.
At reception of number of a disk by the author the program addresses to first CD to a drive.
At library use, data from three CDs of drives of the user are verified. More than three drives at the end user I did not meet.
THAT IT IS NECESSARY TO DELIVER WITH YOUR PROJECT THAT IT IS ALL WORKED
Two files of library wnaspi32.dll and tie.dll do not forget to complete your projects with these libraries differently by a call of library you receive an error message.
AFTER PURCHASE, keep the registration data in a secret, differently it will allow hackers to receive a reciprocal code which is formed on the basis of your registration data.
This program is developed individually for each author separately.
In a key program number, quantity of copies can be transferred.
The answer code can be long (25 signs) or short (6 - 8 numerical signs).
For example uses: you have sold CD a disk with one copy of the program and have put serial number to a disk. The buyer has decided to buy two more copies of your program (or other program). You can request its code of a disk which gave out earlier by phone. By means of our program to create a new code and to phone to the buyer. It will allow to increase service. The buyer has bought one disk which can be key for any your programs. |