Thread: Writing the C wrapper for C++ dlls

  1. #1
    Use this: dudeomanodude's Avatar
    Join Date
    Jan 2008
    Hampton, VA

    Writing the C wrapper for C++ dlls

    Hi all,

    After doing some research, it seems the only way to use unmanaged c++ code in c# is to write a c-wrapper. I've googled for any decent examples/tutorials on exactly how to do this, but all i come up with is some rhetoric on the subject, and no examples

    Would any of you kind souls out there mind giving me an example of how to do this? Something as simple as one little function would suffice. I know it's a lot to ask, but i really would like to know how to do this, since I'm writing a .NET application that will need to preform some pretty intense calculations. Anything you could impart on me would be a huge and much appreciated help.

    Thank you in advance.
    Ubuntu Desktop
    Geany (for quick projects)
    Anjuta (for larger things)

  2. #2
    Ex scientia vera
    Join Date
    Sep 2007
    "What's up, Doc?"
    "'Up' is a relative concept. It has no intrinsic value."

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. writing windows dlls using visual studio 2008 express
    By xixpsychoxix in forum Windows Programming
    Replies: 17
    Last Post: 01-22-2009, 03:53 AM
  2. Writing a Wrapper
    By Rixeno in forum C++ Programming
    Replies: 6
    Last Post: 06-04-2008, 01:36 PM
  3. Folding@Home Cboard team?
    By jverkoey in forum A Brief History of
    Replies: 398
    Last Post: 10-11-2005, 08:44 AM
  4. help! fifo read problem
    By judoman in forum C Programming
    Replies: 1
    Last Post: 08-16-2004, 09:19 AM
  5. Resource ICONs
    By gbaker in forum Windows Programming
    Replies: 4
    Last Post: 12-15-2003, 07:18 AM