If you try to use TX Text Control .NET for Windows Forms in a C++ managed Windows Forms project, you will get a license exception. C++ in Visual Studio 2003 does not provide as much support for the .NET component licensing process as C# or VB.NET. In fact, the licenses file for a licensed control and binding it to the executable is not supported. You have to do this yourself. Below are the steps you should take:
1. Open a Visual Studio 2003 command prompt
2. Change directory to your project folder (licenses.licx must be in this folder)
3. Run the following command to generate the licenses file:
lc /target:[your exe filename.exe] /complist:licenses.licx /i:[your TX Text Control installation folder]\TXTextControl.dll
4. This generates a file called .licenses in the project folder
5. In Visual Studio, right click on the project in the Solution Explorer and select Properties > Linker > Input > Embed Managed Resource File and enter the filename of the .licenses file.
When you rebuild the solution the .licenses file will be embedded in the .exe manifest and the component should be able to read it at runtime.