CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Jul 2010
    Posts
    1

    Wrapping C++ to make it .NET callable

    I know very little about .NET but know my way around C++. I have a C++ interface which I have been asked to wrap to make it .NET callable. I did some research and came across terms like platform invoke, c++/cli, and C++ Invoke...I'm rather confused as I would imagine with the code already there, wrapping should just be a technicality. I would appreciate any simple pointers to how would be a straightforward simple way of going about it, and any resources which could help me do so. I've found only a couple examples online including on this website but it's a bit cryptic to me and I'm wondering if i could be pointed to some more basic tutorial like resources if available.

    Thank you

  2. #2
    Join Date
    Jul 2002
    Posts
    2,543

    Re: Wrapping C++ to make it .NET callable

    This is good C++/CLI introduction with wrapping native class sample:
    http://www.codeproject.com/KB/mcpp/quickcppcli.aspx

  3. #3
    Join Date
    Oct 2002
    Location
    Timisoara, Romania
    Posts
    14,360

    Re: Wrapping C++ to make it .NET callable

    You have to build a mixed-mode DLL in C++/CLI to wrap the types and functions from C++ that you want to make accessible from C#.
    http://www.codeproject.com/KB/mcpp/usingcppdll.aspx
    Marius Bancila
    Home Page
    My CodeGuru articles

    I do not offer technical support via PM or e-mail. Please use vbBulletin codes.

  4. #4
    Join Date
    Aug 2010
    Posts
    51

    Smile Re: Wrapping C++ to make it .NET callable

    hi,



    I've found only a couple examples online including on this website but it's a bit cryptic to me and I'm wondering if i could be pointed to some more basic tutorial like resources if available


    regards,
    phe9oxis,
    http://www.guidebuddha.com

Tags for this Thread

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