07-27-2005 01:37 PM
07-27-2005 02:49 PM
What do you mean by "manually set the settings for a license"? Is there a licenses.licx file in your project and if so, what are the contents of this file? There are no known issues with Measurement Studio licensing in VS.NET 2003 as there are in VS.NET 2005 Beta 2, so there is no patch. It should work as long as your installation is correct and the appropriate entries are present in your project licenses.licx file.
- Elton
07-27-2005 02:55 PM
I have to do the below steps to get the license to work:
-------
Because Visual Studio .NET embeds only the licenses of types that are included in the licenses.licx file, every licensed type used in the application must be included in the licenses.licx file. Visual Studio .NET does not embed licenses for managed or unmanaged Visual C++ applications. If you create a managed Visual C++ application or an unmanaged application using managed extensions that uses the Measurement Studio .NET class libraries, unlicensed dialog boxes appear at run time and cause your application to close. Complete the following steps to license the Measurement Studio .NET libraries in your application:
Select Project»Properties»Build Events»Pre-Build Event in Visual Studio .NET and add the following line to Command Line:
lc.exe /target:"$(TargetFileName)" /complist:"$(ProjectDir)licenses.licx"
Select Project»Properties»Linker»Input and add the following line to Embed Managed Resource File:
"$(ProjectDir)$(TargetFileName).licenses"
07-27-2005 03:19 PM
Unforunately, this is a limitation of Visual C++ 2003. This is not an issue in any version of Visual C# or Visual Basic .NET, and this is no longer an issue for Visual C++ 2005. The steps that you're following from the licensing topic are what you have to do for any licensed .NET types in Visual C++ 2003.
- Elton