Import Class from API

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have an API (*.DLL) written with C/C++ language, I successfully import the
functions from C# application by :
[Imprt....]
static extern ................

Now:
How can I do the same with Class? How to import an class from API
written with C++ language to C# (My application).
 
How can I do the same with Class? How to import an class from API
written with C++ language to C# (My application).

You can't do that easily (there's an example in the SDK of calling
exported class methods, but you still can't instantiate the class
etc). It would be a lot easier to write a MC++ wrapper for it and use
that from C#.



Mattias
 
Back
Top