求解!VC.NET中如何将string转换为字符数组?
现有一个textBoxIP1,我要将读进来的值传给zm30x_open_device函数的参数ip。如下:
String^ s = textBoxIP1->Text;
zm30x_open_device(char *ip);
C#.NET中可以这样做:
string s = textBoxIP1.Text;
char[] c = s.ToCharArray();
ZM30XDLL.zm30x_open_device(c);
但在VC.NET怎么做呢?请高手帮忙!在线等待,不甚感激!