How about ...
public class MyWrapper
{
[DllImport("MyDll.dll", SetLastError=true, CharSet=CharSet.Auto)]
public static IntPtr Add(string wcPath);
}
Since, however, this is returning an HRESULT, is this method on a COM
object? If yse you must use COM Interop.
Hope this helps
Brian W
"Kuba Florczyk" <ch******@poczta.onet.pl> wrote in message
news:ep**************@TK2MSFTNGP11.phx.gbl...
Hi
How to write method in wrapper for method from C++:
HRESULT Add(WCHAR *wcPath)
???
I've write something like this
int Add(string wcPath)
and it's doesn't work :(
regards
kuba florczyk