Imporing class from DLL

  • Thread starter Thread starter Przemek Celej
  • Start date Start date
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
 
Ram said:
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/
 
Back
Top