Unlike C# and VB.NET, the VS.NET compiler for managed C++ does not automatically embed the keys for licensed controls.
While a licenses.licx file is still created (in VS.NET 2003), the embedding of the keys requires a manual step.
Lc.exe is a .NET framework utility used to generate a *.licenses file for your application that you must then add to your project. The command line is the following:
lc /target:<YOUR filename.exe exe> /complist:licenses.licx /i:licensedassembly.dll
As an alternative to the licenses.licx file, which VS.NET 2002 does not create, you should create a text file
For example, if the C++ project output is "cplusplus.exe" and it uses the ColorPicker from Syncfusion.Shared.Base.dll and the ChartControl from Syncfusion.Chart.Windows.dll, the command line would be:
lc /target:cplusplus.exe /complist:licenses.licx /i:Syncfusion.Core.dll
This will create a licenses file named "cplusplus.exe.licenses" that can then be added to your managed C++ application. In VS.NET, right click the project in the Solution Explorer and then select Properties->Linker->Input and then add the newly created licenses file in the entry for Embed Managed Resource File.
When you rebuild your executable, the licenses file will be embedded into it for run-time deployment.
Note: This generation is only required once for a project, provided that the licenses.licx file encompasses all necessary Syncfusion Assemblies for the project.
|Article ID:||Published Date:||Last Revised Date:||Platform:||Control:|
|921||04/30/2011||07/10/2014||Miscellaneous||Install and Configuration|