commit 2025-10-11 17:04 edit a bit ZCppMain/ZMainHeadEx.H
This commit is contained in:
@ -1388,15 +1388,15 @@ namespace ZNsMain
|
||||
static string& GetUniqueID(string& ARR_CString)
|
||||
{
|
||||
const int CI_BuffSize=100 ;
|
||||
static int SI_Count =0 ;
|
||||
static long SI_Count =0 ;
|
||||
const char* CPC_Gap ="_" ;
|
||||
char VCA_Buff[CI_BuffSize] ;
|
||||
|
||||
::sprintf( VCA_Buff,
|
||||
"%d%s%d%s%d" ,
|
||||
"%ld%s%ld%s%ld" ,
|
||||
(long)GetNowSec(), // (long) 가 없으면 메모리 오류가 난다.
|
||||
CPC_Gap , GetTickCount() ,
|
||||
CPC_Gap , (++SI_Count)+ ::GetCurrentProcessId()
|
||||
CPC_Gap , (long)GetTickCount() ,
|
||||
CPC_Gap , (++SI_Count)+long(::GetCurrentProcessId())
|
||||
/*////*/ );
|
||||
|
||||
return ARR_CString = VCA_Buff ;
|
||||
@ -4268,7 +4268,7 @@ namespace ZNsMain
|
||||
|
||||
VB_RemoveFail=false;
|
||||
}
|
||||
while(VB_IsSearched = ::FindNextFileA(VH_File, &VO_CFileData));
|
||||
while((VB_IsSearched = ::FindNextFileA(VH_File, &VO_CFileData))==TRUE);
|
||||
|
||||
::FindClose(VH_File);
|
||||
|
||||
|
@ -601,8 +601,8 @@ int main(int AI_ArgCnt, char* APP_ArgVal[])*/
|
||||
|
||||
■ mingw 컴파일
|
||||
|
||||
g++.exe -o ZtCBaseList_000_mw.exe ZtCBaseList_000.cpp -I../ -lWs2_32
|
||||
g++.exe -o ZtCBaseList_000_mw_D.exe ZtCBaseList_000.cpp -I../ -lWs2_32 -D_DEBUG
|
||||
g++.exe -o ZtCBaseList_000_mw.exe ZtCBaseList_000.cpp -I../ -lWs2_32 -Wall -Wno-unused-function -Wno-misleading-indentation
|
||||
g++.exe -o ZtCBaseList_000_mw_D.exe ZtCBaseList_000.cpp -I../ -lWs2_32 -Wall -Wno-unused-function -Wno-misleading-indentation -D_DEBUG
|
||||
|
||||
./ZtCBaseList_000_mw.exe
|
||||
./ZtCBaseList_000_mw_D.exe
|
||||
|
Reference in New Issue
Block a user