Use VC++ 6.0 library

  • Thread starter Thread starter Usman
  • Start date Start date
U

Usman

Hi

I've a library that I've built using VC++ 6.0. Is there any way to use this
library in my C# code.

Regards

Usman
 
search for P/Invoke (DllImportAttribute)

[DllImport("somenativelib.dll"]
public static extern void DoSomething();

another possible approach is using COM
 
Hi

Its a .lib (static library) not a dll. Is there any way for its usage.

Regards

Usman Jamil

Lebesgue said:
search for P/Invoke (DllImportAttribute)

[DllImport("somenativelib.dll"]
public static extern void DoSomething();

another possible approach is using COM

Usman said:
Hi

I've a library that I've built using VC++ 6.0. Is there any way to use this
library in my C# code.

Regards

Usman
 
Back
Top