c++ functions called from c#
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:
Code:
int x = function1(buffer, error);
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:
Function1 function = new Function1(buffer, error);
int x = function.return;
or like this:
Code:
int x = ToolboxClass.function1(buffer, error);
I've been told that I might be able to create a c++ wrapper around the c# functions, so that when the user calls
Code:
int x = function1(buffer, error);
the c++ 'function1' code will instantiate the appropriate c# classes and deal with namespaces, etc...
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
Re: c++ functions called from c#
Re: c++ functions called from c#
you lost me,
do you want ot create code in c++ and use it in c# code or create c++ code in c#, clarify