Visual Basic Development Bookmark and Share   
 Home > Visual Basic Interop and Upgrade > How To generate a tlb file from a windows dll file and then use this tlb to create c# wrapper
 

How To generate a tlb file from a windows dll file and then use this tlb to create c# wrapper

It is possible to create a wrapper of any windows dll file, is it?

so in order to do this I find that I have to generate a tlb file and then I can use some tools from MS to generate the c# wrapper

How do I generate the tlb file?
VictorB4U  Wednesday, October 28, 2009 11:24 AM

I'm not exactly sure why you need a .tlb file. If it's a COM DLL you can add it to your C# project (Project...Add Reference...COM tab). Standard Windows DLL files do not require a type library file. Below is an example of using C# with the Windows API.

http://www.codeproject.com/KB/cs/c__and_api.aspx


Paul ~~~~ Microsoft MVP (Visual Basic)
Paul P Clement IV  Thursday, October 29, 2009 3:15 PM

I'm not exactly sure why you need a .tlb file. If it's a COM DLL you can add it to your C# project (Project...Add Reference...COM tab). Standard Windows DLL files do not require a type library file. Below is an example of using C# with the Windows API.

http://www.codeproject.com/KB/cs/c__and_api.aspx


Paul ~~~~ Microsoft MVP (Visual Basic)
Paul P Clement IV  Thursday, October 29, 2009 3:15 PM

You can use google to search for other answers

Custom Search

More Threads

• Timer property equivalent?
• fusion technology and make the aciveX control as Windows control and display
• changing button array length
• Responding to the ESC key.
• How to create a COM for a dll that has the reference of another dll?
• Guidance Automation Toolkit for Visual Studio 2005 Error Installation Incomplete
• Excel Addin using .Net component, which further refer to another .Net component
• Configuration, App.Config Files
• Vb 6 convereted to 2005
• String * 255 to VB6.FixedLengthString(255) conversion issue