TLBIMP is a .NET SDK tool that creates an Interop assembly from a COM type library. This project is a managed code implementation of TLBIMP. We have released this tool so developers can see what TLBIMP does and if necessary extend the tool for their specific requirements.
This is the second Tlbimp release on CodePlex. It adds two command-line switches beyond the same functionality as the existing TLBIMP in .NET 3.5 SDK:
- /v2: When this switch is on, the Tlbimp applies new rules when importing native types so as to get the output more as expected result. The new rule in this release is to convert VARIANT_BOOL in structures to bool instead of short.
- /PreserveSig: If this swtich is applied, the Tlbimp doesn't apply [out, retval] parameter transformation but adds PreserveSigAttribute to the imported method.
To get the help for this tool, please type in "tlbimp /?" in the command line, or check MSDN document library for the features in .NET 3.5 SDK.