64,282
社区成员
发帖
与我相关
我的任务
分享
_declspec(dllexport) char* Test()
{
BSTR a = CString("6213fdfsdc").AllocSysString();
return (char*)a;
}
_declspec(dllexport) char* Test()
{
BSTR a = CString("-6213fdfsdc").AllocSysString();
_bstr_t b = a;
char* c = b;
return c;
}
#include <iostream>
using namespace std;
char ** test()
{
char* a = "abcde";
char ** b = &a;
return b;
}
int main()
{
char** p = test();
printf("%s",*p);
}