PRB: Tlbimp.exe Does Not Import Methods in the Module in a Type Library (327099)
The information in this article applies to:
- Microsoft .NET Framework 1.0
This article was previously published under Q327099 SYMPTOMS If you have methods that are defined in a module in the
library block of an Interface Definition Language (IDL) file, and if you use
Tlbimp.exe to import the type library that is generated from this IDL file that
is used in Managed world, you discover that Tlbimp does not import the methods
in the module. CAUSEMethods in the Managed world must be a part of a class because there is no concept of stand-alone methods. Module methods are stand-alone methods. Because there is no stand-alone methods concept in the Managed world, Tlbimp.exe does not import stand-alone methods that are present in the IDL.RESOLUTIONYou can use P/Invoke on the COM DLL to call Module methods.STATUS
This behavior is by design.
Modification Type: | Major | Last Reviewed: | 10/15/2003 |
---|
Keywords: | kbprb kbCOMInterop kbnofix KB327099 kbAudDeveloper |
---|
|