Hello Vinoth,
Assuming you want to get an unmanaged string from a String* (managed), I
think one of these methods from ( System.Runtime. InteropServices .Marshal
) might help you:
public static IntPtr StringToBSTR(st ring s);
public static IntPtr StringToCoTaskM emAnsi(string s);
public static IntPtr StringToCoTaskM emAuto(string s);
public static IntPtr StringToCoTaskM emUni(string s);
public static IntPtr StringToHGlobal Ansi(string s);
public static IntPtr StringToHGlobal Auto(string s);
public static IntPtr StringToHGlobal Uni(string s);
Hope this helps,
RBischoff
-----------------------------------------
http://msdn.microsoft.com/visualc/ (VC++ HOME)
http://www.mvps.org/vcfaq/ (C++ FAQ)
http://www.winterdom.com/mcppfaq/ (MC++ FAQ)
http://msdn.microsoft.com/visualc/whidbey/ (CLI)
VK> Hi
VK>
VK> I am writing a wrapper class for a unmanaged c++ class, which has
VK> the method signature,
VK>
VK> Method(wchar_t* * ppszValue)
VK>
VK> Anyone please tell me, how to convert the string _gc* _gc* to
VK> wchat_t**
VK>
VK> Thanks in advance
VK>