Create com class wrapper in VS 2010
Is there a way I can create a com class wrapper when developing in VS 2010? If so how do I add a reference to the COM type library?
If you just want a generic marshalling wrapper (e.g. no logic, just marshalling types) here are 2 ways:
- Right click on your project, click "Add Reference", choose the "COM" section on the far left, and search for the library you want to import.
- Use TLBIMP.EXE to create a wrapper class and add that to your project.