BSTR str = SysAllocString(L"test");可以成功
但以下为何不成功
CString test("test");
BSTR str = test.AllocSysString();
请问是什么原因,看msdn两种都可以的,但我没成功,希望高人指点!