WTL Multi-Thread |
Post Reply |
Author | |
RobertJ
Newbie Joined: 09 February 2008 Location: France Status: Offline Points: 2 |
Post Options
Thanks(0)
Posted: 23 September 2010 at 4:29am |
Hi, I use codejock Suite Pro in a program written in WTL Multi-Thread. In the main thread of the application, everything works well, but I use threads in which I would use the TaskDialog, but I cannot instantiate _DTaskDialog, I get an error: E_NOINTERFACE. Any ideas? My Sample: DWORD MyThread ( ... ) { HRESULT hr = CoInitializeEx ( NULL, COINIT_APARTMENTTHREADED ) ; OLECHAR szGuid[128] ; StringFromGUID2 ( __uuidof ( XtremeSuiteControls::TaskDialog ), ( LPOLESTR ) szGuid, sizeof ( szGuid ) ) ; CRect rcDefault ; // ------ Create Task Dialog ----- CComPtr<IUnknown> spControl ; CAxWindow AxTaskDialog ; AxTaskDialog.Create ( hWnd, &rcDefault, szGuid, WS_CHILD | WS_VISIBLE ) ; hr = AxTaskDialog.QueryControl ( &spControl ) ; CComPtr<XtremeSuiteControls::_DTaskDialog> pITaskDialog ; hr = spControl->QueryInterface ( __uuidof ( XtremeSuiteControls::_DTaskDialog ), ( LPVOID * ) &pITaskDialog ) ; // hr = E_NOINTERFACE } Thanks Robert Coodejock v.13.1.0 (ActiveX) Windows 7 Integral |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |