calling c++ function from a c# project

  • Thread starter Thread starter fotis
  • Start date Start date
F

fotis

hi there

i'm just learning c# so i have a question for you.
is it possible to call/include/import functions from a c++
project (.cpp) into a c# project?if yes how can i do that?

wishes for happy new year

fotis
 
fotis,

One of the ways to do this is if you export the functions in a DLL
(static functions, not object instances), or if you export the objects
through COM so that COM interop may be used.

You can also recompile the C++ solution, or write managed wrappers
around the C++ objects as well.

Hope this helps.
 
Back
Top