diff --git a/ZCppMain/ZMainHeadEx.H b/ZCppMain/ZMainHeadEx.H index 597b3da..b9189b4 100644 --- a/ZCppMain/ZMainHeadEx.H +++ b/ZCppMain/ZMainHeadEx.H @@ -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); diff --git a/ZCppMainTest/ZtCBaseList_000.cpp b/ZCppMainTest/ZtCBaseList_000.cpp index c35dde1..eb079c0 100644 --- a/ZCppMainTest/ZtCBaseList_000.cpp +++ b/ZCppMainTest/ZtCBaseList_000.cpp @@ -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