commit 2025-10-11 17:04 edit a bit ZCppMain/ZMainHeadEx.H

This commit is contained in:
2025-10-11 17:04:46 +09:00
parent 15edbd80d8
commit f10ea286c0
2 changed files with 7 additions and 7 deletions

View File

@ -1388,15 +1388,15 @@ namespace ZNsMain
static string& GetUniqueID(string& ARR_CString) static string& GetUniqueID(string& ARR_CString)
{ {
const int CI_BuffSize=100 ; const int CI_BuffSize=100 ;
static int SI_Count =0 ; static long SI_Count =0 ;
const char* CPC_Gap ="_" ; const char* CPC_Gap ="_" ;
char VCA_Buff[CI_BuffSize] ; char VCA_Buff[CI_BuffSize] ;
::sprintf( VCA_Buff, ::sprintf( VCA_Buff,
"%d%s%d%s%d" , "%ld%s%ld%s%ld" ,
(long)GetNowSec(), // (long) 가 없으면 메모리 오류가 난다. (long)GetNowSec(), // (long) 가 없으면 메모리 오류가 난다.
CPC_Gap , GetTickCount() , CPC_Gap , (long)GetTickCount() ,
CPC_Gap , (++SI_Count)+ ::GetCurrentProcessId() CPC_Gap , (++SI_Count)+long(::GetCurrentProcessId())
/*////*/ ); /*////*/ );
return ARR_CString = VCA_Buff ; return ARR_CString = VCA_Buff ;
@ -4268,7 +4268,7 @@ namespace ZNsMain
VB_RemoveFail=false; VB_RemoveFail=false;
} }
while(VB_IsSearched = ::FindNextFileA(VH_File, &VO_CFileData)); while((VB_IsSearched = ::FindNextFileA(VH_File, &VO_CFileData))==TRUE);
::FindClose(VH_File); ::FindClose(VH_File);

View File

@ -601,8 +601,8 @@ int main(int AI_ArgCnt, char* APP_ArgVal[])*/
■ mingw 컴파일 ■ mingw 컴파일
g++.exe -o ZtCBaseList_000_mw.exe ZtCBaseList_000.cpp -I../ -lWs2_32 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 -D_DEBUG 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.exe
./ZtCBaseList_000_mw_D.exe ./ZtCBaseList_000_mw_D.exe