C
cai
Hi ,everyone, I come up with a problem, and I struggle with it for time ,
but I can't find the answer out.
I got a dll file like this:
/////////dll file////////
typedef struct tagIEPROXY
{
DWORD dwProxyEnable;
#ifdef UNICODE
wstring strProxyOverride;
wstring strProxyServer;
#else
string strProxyOverride;
string strProxyServer;
#endif
}IEPROXY,*PIEPROXY;
BOOL GetIEProxy(OUT IEPROXY& IEProxy)
{
IEProxy.strProxyServer = _T("Test");
return TRUE;
}
/////// the EXE file /////////
VOID main()
{
IEPROXY IeProxy;
if(!GetIEProxy(IeProxy))
return;
IeProxy.strProxyServer = _T("");
printf("%s","OK\n");
}
In debug mode, when I run up, it shows up an error:
_crtIsValidHeapPointer(pUserData). Why?
but I can't find the answer out.
I got a dll file like this:
/////////dll file////////
typedef struct tagIEPROXY
{
DWORD dwProxyEnable;
#ifdef UNICODE
wstring strProxyOverride;
wstring strProxyServer;
#else
string strProxyOverride;
string strProxyServer;
#endif
}IEPROXY,*PIEPROXY;
BOOL GetIEProxy(OUT IEPROXY& IEProxy)
{
IEProxy.strProxyServer = _T("Test");
return TRUE;
}
/////// the EXE file /////////
VOID main()
{
IEPROXY IeProxy;
if(!GetIEProxy(IeProxy))
return;
IeProxy.strProxyServer = _T("");
printf("%s","OK\n");
}
In debug mode, when I run up, it shows up an error:
_crtIsValidHeapPointer(pUserData). Why?