CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    May 2004
    Location
    London, England
    Posts
    563

    C++ Lib files and C#

    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

  2. #2
    Join Date
    Jan 2002
    Location
    Scaro, UK
    Posts
    5,940
    You'll have to write an assembly which links to the .lib in Visual C++.NET.

    Darwen.
    www.pinvoker.com - PInvoker - the .NET PInvoke Interface Exporter for C++ Dlls.

  3. #3
    Join Date
    May 2004
    Location
    London, England
    Posts
    563
    and how do I do that?

  4. #4
    Join Date
    Jan 2002
    Location
    Scaro, UK
    Posts
    5,940
    (1) Buy Visual C++.NET (or full professional).

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

    Darwen.
    www.pinvoker.com - PInvoker - the .NET PInvoke Interface Exporter for C++ Dlls.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured