Hi,
I've written a distributed programming tool in c# according to a standard that was created for c. In that standard, the user will call functions like this:
I want the user to be able to call my c# functions in this way, rather than in an object-oriented way like this:Code:int x = function1(buffer, error);
or like this:Code:Function1 function = new Function1(buffer, error); int x = function.return;
I've been told that I might be able to create a c++ wrapper around the c# functions, so that when the user callsCode:int x = ToolboxClass.function1(buffer, error);the c++ 'function1' code will instantiate the appropriate c# classes and deal with namespaces, etc...Code:int x = function1(buffer, error);
Is this possible? I'm not very familiar with c++. The user should ideally be able to call the c++ wrapper functions from a c# program or a c++ program.
Cheers




Reply With Quote