Click here to Skip to main content
16,009,185 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
QuestionBuilding DLL's with WTL Pin
Defenestration10-May-06 14:39
Defenestration10-May-06 14:39 
AnswerRe: Building DLL's with WTL Pin
Justin Tay10-May-06 16:21
Justin Tay10-May-06 16:21 
GeneralRe: Building DLL's with WTL Pin
Defenestration10-May-06 17:37
Defenestration10-May-06 17:37 
AnswerRe: Building DLL's with WTL Pin
Michael Dunn11-May-06 6:16
sitebuilderMichael Dunn11-May-06 6:16 
QuestionATL and WTL versions Pin
HakunaMatada9-May-06 22:34
HakunaMatada9-May-06 22:34 
AnswerRe: ATL and WTL versions Pin
HakunaMatada9-May-06 23:56
HakunaMatada9-May-06 23:56 
AnswerRe: ATL and WTL versions Pin
Michael Dunn10-May-06 10:07
sitebuilderMichael Dunn10-May-06 10:07 
QuestionAtlAdvise with IE hangs Pin
rana749-May-06 20:39
rana749-May-06 20:39 
I am creating a console application,in which I create an instance on IE and hook an event sink to it.The main code is as follows:
CoInitializeEx(NULL, COINIT_MULTITHREADED);
IWebBrowser2* disp;
HRESULT hr;
hr=CoCreateInstance(CLSID_InternetExplorer,NULL,CLSCTX_LOCAL_SERVER,IID_IWebBrowser2,(void**)&disp);
if(SUCCEEDED(hr))
{
disp->put_Visible(TRUE);
LPSTREAM pStream = NULL;
//marshalling the broser interface
hr = CoMarshalInterThreadInterfaceInStream(IID_IWebBrowser2, disp, &pStream);
.......
HANDLE hThread = CreateThread(NULL, 0, ThreadProc1,pStream, 0, &dwThreadID);
WaitWithMessageLoop(hThread);
......
}
}

...........

disp->Navigate2(&vurl, &ve, &ve, &ve, &ve); */
CoUninitialize();
In threadprocfunction,i create an instance of teh sick and hook it to IE
CoInitialize(NULL);
........
// get proxy to interface and release IStream
HRESULT hr = CoGetInterfaceAndReleaseStream(pStream, IID_IWebBrowser2, (LPVOID*)&psIE);
HRESULT hr=CoCreateInstance(CLSID_InternetExplorer,NULL,CLSCTX_LOCAL_SERVER,IID_IWebBrowser2,(void**)&psIE);
....... //Create the listener instance
hr = CoCreateInstance(CLSID_emplaybacksink,NULL,CLSCTX_INPROC_SERVER,IID_Iemplaybacksink,(void**)&tsink);
....... {
AtlAdvise( psIE,pUnk,DIID_DWebBrowserEvents2,&m_dwCookie);
........ }
The Atladvise action causes IE to hang during navigation.It proceeds only after the application has exitted.It seems there is a deadlock when IE calls back into the event sink.How can i avoid it?
AnswerRe: AtlAdvise with IE hangs Pin
Stuart Dootson9-May-06 21:04
professionalStuart Dootson9-May-06 21:04 
GeneralRe: AtlAdvise with IE hangs Pin
Stephen Hewitt9-May-06 21:49
Stephen Hewitt9-May-06 21:49 
GeneralRe: AtlAdvise with IE hangs Pin
rana749-May-06 21:56
rana749-May-06 21:56 
GeneralRe: AtlAdvise with IE hangs Pin
Stephen Hewitt9-May-06 23:41
Stephen Hewitt9-May-06 23:41 
GeneralRe: AtlAdvise with IE hangs Pin
Stephen Hewitt10-May-06 21:53
Stephen Hewitt10-May-06 21:53 
GeneralRe: AtlAdvise with IE hangs Pin
rana7411-May-06 4:42
rana7411-May-06 4:42 
GeneralRe: AtlAdvise with IE hangs Pin
rana749-May-06 21:52
rana749-May-06 21:52 
QuestionStatic Linking of WTL Pin
HakunaMatada8-May-06 18:38
HakunaMatada8-May-06 18:38 
AnswerRe: Static Linking of WTL Pin
khan++8-May-06 18:49
khan++8-May-06 18:49 
AnswerRe: Static Linking of WTL Pin
Stuart Dootson8-May-06 21:08
professionalStuart Dootson8-May-06 21:08 
GeneralRe: Static Linking of WTL Pin
Stephen Hewitt8-May-06 21:54
Stephen Hewitt8-May-06 21:54 
GeneralRe: Static Linking of WTL Pin
HakunaMatada8-May-06 22:14
HakunaMatada8-May-06 22:14 
GeneralRe: Static Linking of WTL Pin
Stephen Hewitt8-May-06 23:40
Stephen Hewitt8-May-06 23:40 
GeneralRe: Static Linking of WTL Pin
Stuart Dootson9-May-06 2:06
professionalStuart Dootson9-May-06 2:06 
GeneralRe: Static Linking of WTL Pin
Stephen Hewitt9-May-06 13:56
Stephen Hewitt9-May-06 13:56 
QuestionIs it OK to use splitter in CDialogResize based app ? Pin
Defenestration8-May-06 9:57
Defenestration8-May-06 9:57 
QuestionCannot get CDialogResize to work Pin
Defenestration2-May-06 13:57
Defenestration2-May-06 13:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.