-static TCHAR localAppDataPath[_MAX_PATH];
+
static WSAData wsaData; //winsockdata
static HINTERNET hInternet = NULL;
//
//\83A\83v\83\8a\83P\83P\81[\83V\83\87\83\93\8f\89\8aú\89»\8f\88\97\9d
//
-
- InitCommonControls();
-
- if(_Module.Init(NULL, hInstance) != S_OK){
+ HRESULT hRes = ::CoInitialize(NULL);
+ ATLASSERT(SUCCEEDED(hRes));
+ //InitCommonControls();
+ AtlInitCommonControls(ICC_COOL_CLASSES | ICC_WIN95_CLASSES);
+ GUID guid;
+ if(_Module.Init(NULL, hInstance,&guid) != S_OK){
throw AppInitException(__LINE__,TEXT(__FILE__),TEXT(__FUNCTION__));
}
+
+ AtlAxWinInit();
if(InitializeNlite() != TRUE){
throw AppInitException(__LINE__,TEXT(__FILE__),TEXT(__FUNCTION__));
_Module.RemoveMessageLoop();
FinalizeNlite();
_Module.Term();
-
+ ::CoUninitialize();
return nRet;
}
SystemParametersInfo (SPI_SETLISTBOXSMOOTHSCROLLING,FALSE,FALSE,0);
+
+ SHGetFolderPathW(0,CSIDL_APPDATA,0,SHGFP_TYPE_CURRENT,appFolderPath);
+ ncvAppSettingPath = appFolderPath;
+ ncvAppSettingPath += TEXT("\\posite-c\\NiconamaCommentViewer\\AppSetting.xml");
}catch (AppInitException e){
return rslt;