Здравствуйте, Tumypka, Вы писали:
Попробуйте вызвать
AtlAxWinInit перед
DoModal :
T>int WINAPI _tWinMain(HINSTANCE hInstance, HINSTANCE /*hPrevInstance*/, LPTSTR lpstrCmdLine, int nCmdShow)
T>{
T> HRESULT hRes = ::CoInitialize(NULL);
T> // this resolves ATL window thunking problem when Microsoft Layer for Unicode (MSLU) is used
T> ::DefWindowProc(NULL, 0, 0, 0L);
T> AtlInitCommonControls(ICC_COOL_CLASSES | ICC_BAR_CLASSES); // add flags to support other controls
T> hRes = _Module.Init(NULL, hInstance);
T> ATLASSERT(SUCCEEDED(hRes));
AtlAxWinInit();
T> CMainDlg dlg;
T> int nRet = dlg.DoModal();
AtlAxWinTerm();
T> _Module.Term();
T> ::CoUninitialize();
T> return nRet;
T>}