#include #include #include #include #include "resource.h" #include "other.h" // // FList - a file list munger // Written by: AaronL // // // prototypes... // int __cdecl wmain(int ,wchar_t *argv[]); void ShowHelp(void); BOOL DoStuff(void); int ProcessFor_A(void); int ProcessFor_B(void); int ProcessFor_C(void); int ProcessFor_D(void); int ProcessFor_E(void); int ProcessFor_F(void); int MyLoadString(int nID, TCHAR *szResult); // // Globals // HINSTANCE g_hModuleHandle = NULL; int g_Flag_a = FALSE; int g_Flag_b = FALSE; int g_Flag_c = FALSE; int g_Flag_d = FALSE; int g_Flag_e = FALSE; int g_Flag_f = FALSE; TCHAR g_Flag_f_Data[_MAX_PATH]; int g_Flag_g = FALSE; int g_Flag_z = FALSE; TCHAR g_Flag_z_Data[_MAX_PATH]; TCHAR g_szFileList1[_MAX_PATH]; TCHAR g_szFileList2[_MAX_PATH]; //------------------------------------------------------------------- // purpose: wmain //------------------------------------------------------------------- int __cdecl wmain(int argc,wchar_t *argv[]) { LPWSTR pArg = NULL; int argno = 0; int nflags = 0; g_hModuleHandle = GetModuleHandle(NULL); _tcscpy(g_Flag_z_Data, _T("")); _tcscpy(g_szFileList1, _T("")); _tcscpy(g_szFileList2, _T("")); // process command line arguments for (argno=1; argno