Using licensed components in Visual C++ applications
In This Topic
There is an issue in VC++ 2003 where the licenses.licx is ignored during the build process; therefore, the licensing information is not included in VC++ applications.
To fix this problem, extra steps must be taken to compile the licensing resources and link them to the project. To accomplish this, follow these steps:
-
Build the C++ project as usual. This should create an EXE file and also a licenses.licx file with licensing information in it.
-
Copy the licenses.licx file from the application directory to the target folder (Debug or Release).
-
Copy the C1Lc.exe utility and the licensed DLLs to the target folder. (Don't use the standard lc.exe, it has bugs.)
-
Use C1Lc.exe to compile the licenses.licx file. The command line should look like this:
c1lc /target:MyApp.exe /complist:licenses.licx /i:C1.Win.C1FlexGrid.dll
- Link the licenses into the project. To do this, go back to Visual Studio, right-click the project, select Properties, and go to the Linker/Command Line option.
- Enter the following:
/ASSEMBLYRESOURCE:Debug\MyApp.exe.licenses
-
Rebuild the executable to include the licensing information in the application.