16,472
社区成员
发帖
与我相关
我的任务
分享
char MYEXEPathA[255];
CString MYEXEPath ;
CString MYINIPathFile;
::GetCurrentDirectory(255,MYEXEPathA);
MYEXEPath=MYEXEPathA;
MYINIPathFile=MYEXEPath+"\\test.ini";
void GetIniTest(CString& str,DWORD i=1)
{
LPSTR tastr;
CString testr;
testr.Format("ABC%d",i);
::GetPrivateProfileString("ListUser",testr,"",tastr,20,MYINIPathFile);
str.Format("%s",tastr);
}
CString showstr;
GetIniTest(showstr);
#ifdef CRTDLL
else if ( __active_heap == __V5_HEAP )
{
__old_sbh_region_t *preg;
__old_sbh_page_t * ppage;
__old_page_map_t * pmap;
_mlock(_HEAP_LOCK );
__try {
if ( (pmap = __old_sbh_find_block(pBlock, &preg, &ppage)) != NULL )
__old_sbh_free_block(preg, ppage, pmap);
}
__finally {
_munlock(_HEAP_LOCK );
}
if (pmap == NULL)
{
retval = HeapFree(_crtheap, 0, pBlock);
if (retval == 0)
{
errno = _get_errno_from_oserr(GetLastError());
}
}
}
#endif /* CRTDLL */
else // __active_heap == __SYSTEM_HEAP
#endif /* _WIN64 */
{
retval = HeapFree(_crtheap, 0, pBlock);
if (retval == 0) //就中断在这里!
{
errno = _get_errno_from_oserr(GetLastError());
}
}
}