J
Josh
Hi All,
I am trying to write a C# program to call a routine in managed C++.
In the routine, the C# program passes a delegate to the managed C++.
The delegate looks like this in c++:
public __delegate void FoundPidDelegate (
unsigned char *pData,
);
The C++ is able to call the C# because my routine in C# is unsafe and
looks like this:
static private void MyFoundPidFunction (byte *pData)
Is there any way to make a "safe" C# function that looks like this:
static private void MyFoundPidFunction (byte []pData)
and lets me pass it as a delegate to the C++?
Thanks,
Josh
I am trying to write a C# program to call a routine in managed C++.
In the routine, the C# program passes a delegate to the managed C++.
The delegate looks like this in c++:
public __delegate void FoundPidDelegate (
unsigned char *pData,
);
The C++ is able to call the C# because my routine in C# is unsafe and
looks like this:
static private void MyFoundPidFunction (byte *pData)
Is there any way to make a "safe" C# function that looks like this:
static private void MyFoundPidFunction (byte []pData)
and lets me pass it as a delegate to the C++?
Thanks,
Josh