Header file for QlmLicenseLib?
For arcane reasons I must build my application using Metrowerks Code Warrior. Thus I am unable to make use of the sample Visual Studio projects.
When I #include LicenseValidator.h in a .cpp file the compiler complains that QlmLicenseLib is undefined, as is QlmLicense. I assume these are defined in QlmLicenseLib, but I am not able to find a header file for the .dll.
Suggestions?
-
Hi William
I am not familiar with Metrowerks but in Visual studio you would do something like this:
// Update the path accordingly
#import "..........\redistrib\QlmLicenseLib.tlb"
using namespace QlmLicenseLib;Note that you should also register the QlmLicenseLib.dll as follows:
regasm /codebase <full path to qlmlicenselib.dll>and to create a new version of the QlmLicenseLib.tlb (in case you do not find it)
regasm /tlb <full path to qlmlicenselib.dll>regasm is a Microsoft tool for registering .NET assemblies as COM objects. It can be found in a few places and you need to use the right one depending on your OS/.NET version:
C:\Windows\Microsoft.NET\Framework\v2.0.50727
C:\Windows\Microsoft.NET\Framework64\v2.0.50727C:\Windows\Microsoft.NET\Framework\v4.0.30319
C:\Windows\Microsoft.NET\Framework64\v4.0.30319Regards
John
Please sign in to leave a comment.
Comments
5 comments