470,833 Members | 1,346 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,833 developers. It's quick & easy.

Imporing class from DLL

Hello,

How can I import *class with functions* (wrote in C++) to my .NET
program.

--
Pozdrawiam
Przemys³aw Celej
Feb 19 '06 #1
3 1504
Ram
You can use the TlbImp.exe tool
Use the Visual Studio Command Line and type the following:
TlbImp YourCPPDll.dll /out:C:\DotNetWrapper.dll
Where DotNetWrapper.dll is the assembly that will be Generated.
If you want to add a strong name to your assembly add the following
flag to the command:
/keyFile:YourStrongName.snk
Hope this helps

--Rami

Feb 19 '06 #2
Ram wrote:
You can use the TlbImp.exe tool
Use the Visual Studio Command Line and type the following:
TlbImp YourCPPDll.dll /out:C:\DotNetWrapper.dll
Where DotNetWrapper.dll is the assembly that will be Generated.
If you want to add a strong name to your assembly add the following
flag to the command:
/keyFile:YourStrongName.snk
Hope this helps

--Rami

After:
C:\doc\Visual Studio Projects\xxx\Debug>TlbImp id3lib.dll /out:aaa.dll

I've got:
TlbImp error: The input file 'C:\doc\Visual Studio
Projects\xxx\Debug\id3lib.dll' is not a valid type library

'id3lib.dll' is a standard DLL library built from Id3lib sources[1].
[1]http://id3lib.sourceforge.net/

--
Pozdrawiam
Przemys³aw Celej
Feb 19 '06 #3
Ram
To Import Dlls to your .Net project, they must be COM dlls...

--Rami

Feb 20 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Murat Tasan | last post: by
2 posts views Thread by Fernando Rodriguez | last post: by
2 posts views Thread by Gabriel Genellina | last post: by
5 posts views Thread by Andy | last post: by
3 posts views Thread by Hamilton Woods | last post: by
reply views Thread by emin.shopper | last post: by
reply views Thread by mihailmihai484 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.