write c# plugin for c++ app

  • Thread starter Thread starter Dirk Reske
  • Start date Start date
D

Dirk Reske

Hello,

how can I write a c# plugin for a c++ application.
The App calls

int __declspec(dllexport)plugin_version(void)
{
}

in a c++ dll.
Is there a way to write a c++.Net dll that exports the required methods, and
calls
the methods in my c# dll?like:

int __declspec(dllexport)plugin_version(void)
{
return MyCSharpDll.PluginVersion();
}
 
Probably the easiest way to do this is to use Managed C++ to form a bridge
between C# and C++.
 
yes,

but I can't really code in managed c++...
some example for this function

int __declspec(dllexport)plugin_version(void)
{
}
 
Back
Top