Click to See Complete Forum and Search --> : C++ Lib files and C#


Vaderman
July 8th, 2004, 06:42 AM
I have a lib file that was developed in VC++ and has MFC code - basically unmanaged code.

I just like to find out if I can use this lib file in my C# project?
If this is the case, is there any tweaks I have to perform in order to use it, ie call to call functions. Also do I have to go thru the process of removing MFC specific code etc?

Thanx

darwen
July 9th, 2004, 07:49 AM
You'll have to write an assembly which links to the .lib in Visual C++.NET.

Darwen.

Vaderman
July 9th, 2004, 07:53 AM
and how do I do that?

darwen
July 9th, 2004, 11:45 AM
(1) Buy Visual C++.NET (or full professional).

(2) Learn Visual C++.NET (can't tell you how - you really need a book).

Darwen.