I am new to C# and visual studio. I have a C# GUI that passes parameters to functions exported from a C++ DLL. The platform in Visual Studio 2005.
I have a function in the c++ DLL that take parameters of the following types:
UINT8
UINT16
LPCWSTR
someword (the following has been defined in the c+= dll : typedef void* someword..so basically someword is just a void pointer.)
Can you please help me how do i pass parameters from my C# GUI to this function imported from the DLL. I know it has to be done using MarshalAs but i donno how. also the c++ dll is unmanaged. Any help would be apreciated.
Thanks,
Viren
Try something like this: