Protect system basis on CD (EXAMPLE ONLY )
 
Demo version is different from the final version. The final version is developed individually.
The complex is intended for programmers of various level of training and knowledge of programming languages: Borland C ++, Microsoft Visual C ++, BorlandDelphi, Microsoft Visual Basic. The complex is used to distinguish an originally written down CD disks created by the author (not DVD) ,and due to this it is possible to do a binding with defined 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 of CD disk. See picture
- Library which is capable to be connected to any project written in languages Borland C ++, Microsoft Visual C ++, Borland Delphi, Microsoft Basic.
- Examples of library connection, using various programming languages.
SEQUENCE OF WORK
- Create the project and connect library See examples SDK.
-
In library there is only one called function:
GetCdInfo (LPTSTR szName, LPTSTR szKey, long nType, long nNum); The library returns numerical value depending on the received data:
-
Returned values for the temporary version of the program:
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.
-
Returned values for the temporary version of the program:
Program use
We start the program with the Reception of a key from disk CreateKeyCD.exe We insert the written down disk into CD 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 disk or from a disk which is copied. Each new written down disk will have unique number. This number will be kept in a special directory, in a file cd_key.txt
Unpack and deliver this number with a disk.
Fasten" a library to your program tie.dll as shown in an example in directory SDK and call in the appendix function GetCdInfo (LPTSTR szName, LPTSTR szKey, long nType, long nNum);
If the library is not registered all parametres can be random, for example:
In this case the library will return values as was told above.
If you have bought a complex it is necessary for you to enter in the bottom line of data acquisition from a key of the disk , which you receive at registration and as to transfer this key as the second parametre.
For example:
After reception of registration data the mechanism due which you can create returned values library will be informed. If you will not accept the current mechanism specially for your release of library, 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 on library work. The library works in a demonstration mode and does not use transferred parametres.
With the program of 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 to libraries in the second parametre should be identical! Otherwise data will not coincide.
Keywords: Protect system basis on CD, Programming