write c# plugin for c++ app

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();
}
 
M

Michael Giagnocavo [MVP]

Probably the easiest way to do this is to use Managed C++ to form a bridge
between C# and C++.
 
D

Dirk Reske

yes,

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

int __declspec(dllexport)plugin_version(void)
{
}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top