TApp::TApp(HINSTANCE _hI, LPSTR _cmdLine, int _nCmdShow) { hInstance = _hI; cmdLine = _cmdLine; nCmdShow = _nCmdShow; mainWnd = NULL; preWnd = NULL; result = 0; WCHAR cname[MAX_PATH]; snwprintfz(cname, wsizeof(cname), L"tapp_%d", ::GetCurrentProcessId()); defaultClassW = wcsdup(cname); defaultClass = WtoA(cname); tapp = this; hash = new TWinHashTbl(MAX_TAPPWIN_HASH); twinId = 1; InitInstanceForLoadStr(hInstance); #if ENGLISH_TEST TSetDefaultLCID(0x409); // for English Dialog Test #else TSetDefaultLCID(); #endif ::CoInitialize(NULL); ::InitCommonControls(); }
TApp::TApp(HINSTANCE _hI, LPSTR _cmdLine, int _nCmdShow) { hI = _hI; cmdLine = _cmdLine; nCmdShow = _nCmdShow; mainWnd = NULL; defaultClass = "tapp"; defaultClassV = IS_WINNT_V ? (void *)L"tapp" : (void *)"tapp"; tapp = this; hash = new TWinHashTbl(MAX_TAPPWIN_HASH); InitInstanceForLoadStr(hI); TLibInit_Win32V(); #if ENGLISH_TEST TSetDefaultLCID(0x409); // for English Dialog Test #else TSetDefaultLCID(); #endif ::CoInitialize(NULL); ::InitCommonControls(); }