How to marshal a class to the C++ method??

Jell

Member
Joined
Mar 5, 2004
Messages
10
My Problem is:

1.The following C++ method has to be called from C# code.

GetNames(& CStringArrayObject)

2. This function takes a pointer to CStringArray object.

3.Right now the approach i am using is:

Use PInvoke to use C++ DLL in C# code.
and then marshal the data from C# to C++.

I am stuck because :
I dont know how to apply marshalling in this case(passing a class to the function by reference)??

SHould i use some other way of loading DLL that wont require me to use marshaling?

PLEASE HELP
 
Back
Top