System::Runtime::InteropServices::Marshal::StringToHGlobalAnsi 方法

Marshal::StringToHGlobalAnsi method

将指定字符串的内容复制到非托管内存。

static IntPtr System::Runtime::InteropServices::Marshal::StringToHGlobalAnsi(const String &s)
参数类型描述
sconst String&要复制的字符串。

ReturnValue

非托管内存中的地址。

另见