call C# function from C++ dll
-
Hi All, I have a function in C++ dll like
FunctionCPP(int s)
{
}I have a function in C# application(exe) like
int FunctionCSharp(int s)
{
return s;
}what is the procedure to call FunctionCSharp from FunctionCPP? Any help will be appriciated. Thanks
G.Paulraj
-
Hi All, I have a function in C++ dll like
FunctionCPP(int s)
{
}I have a function in C# application(exe) like
int FunctionCSharp(int s)
{
return s;
}what is the procedure to call FunctionCSharp from FunctionCPP? Any help will be appriciated. Thanks
G.Paulraj
Not sure how this would work with a C++ DLL loaded into a C# application, but read what MSDN[^] says here, maybe it can get you going. Registering/Using somekind of inbetween COM interface sounds like a good idea.
> The problem with computers is that they do what you tell them to do and not what you want them to do. < > If it doesn't matter, it's antimatter.<