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
John0 -
John,
I cannot make use of the .tlb in my situation. Can you provide the header file for QlmLicenseLib?
Bill
0 -
Hi Bill
The QLMLicenseLib.dll is not a C++ DLL. It's a .NET DLL and does not have a header as such.
I'm not familiar with how Metrowerks integrates with .NET assemblies or COM object. Can you confirm that Metrowerks is able to interface with COM objects?
Regards
John0 -
John,
Metrowerks CodeWarrior does not support .NET assemblies or COM objects.
Are you able to provide a static library that we can link to?
Bill
0 -
We are not able to provide a static library because the QlmLicenseLib.dll is a .NET assembly, not a C++ module.
Regards
John0
Please sign in to leave a comment.
Comments
5 comments