Click here to Skip to main content
15,886,963 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: CoCreateInstance Problem & GetLastError 0x0000007e Pin
yihung.hung12-Apr-13 14:32
yihung.hung12-Apr-13 14:32 
GeneralRe: CoCreateInstance Problem & GetLastError 0x0000007e Pin
Richard MacCutchan12-Apr-13 21:55
mveRichard MacCutchan12-Apr-13 21:55 
AnswerRe: CoCreateInstance Problem & GetLastError 0x0000007e Pin
Stephen Hewitt11-Apr-13 23:32
Stephen Hewitt11-Apr-13 23:32 
GeneralRe: CoCreateInstance Problem & GetLastError 0x0000007e Pin
yihung.hung12-Apr-13 15:31
yihung.hung12-Apr-13 15:31 
GeneralRe: CoCreateInstance Problem & GetLastError 0x0000007e Pin
Stephen Hewitt12-Apr-13 19:11
Stephen Hewitt12-Apr-13 19:11 
GeneralRe: CoCreateInstance Problem & GetLastError 0x0000007e Pin
yihung.hung13-Apr-13 2:52
yihung.hung13-Apr-13 2:52 
GeneralRe: CoCreateInstance Problem & GetLastError 0x0000007e Pin
Richard MacCutchan12-Apr-13 22:00
mveRichard MacCutchan12-Apr-13 22:00 
Question[SOLVED] IHTMLDOCUMENT2 get_Script problem in thread Pin
mr_m_imran28-Mar-13 8:20
mr_m_imran28-Mar-13 8:20 
Hi VC++ 2008. I have this web browseron my dialog based MFC app which hosts JavaScript functions thatI access from the app using COM stuff. It worked. I then shifted all the COM related code to a worker thread because that's where I'm receiving data, from the socket, to be displayed on the web browser. And that's where things are not working. I've read things about marshalling which needs to be done if COM is to be accessed from or accross threads. But I can't figure out where to start!
C#
spDisp = m_ex->get_Document();
spDisp->QueryInterface(IID_IHTMLDocument2,(void**)&m_spDoc);
m_spDoc->get_Script(&spScript);

This is the code, copied form some example on the web. m_ex is the pointer to the CExplorer1 object (the web browser control). The program crashes on the last line. Can someone please guide me what to do exactly so that it runs in the thread? Thanks.
AnswerRe: IHTMLDOCUMENT2 get_Script problem in thread Pin
Richard MacCutchan28-Mar-13 8:48
mveRichard MacCutchan28-Mar-13 8:48 
GeneralRe: IHTMLDOCUMENT2 get_Script problem in thread Pin
mr_m_imran28-Mar-13 17:36
mr_m_imran28-Mar-13 17:36 
QuestionTo Identify .Net Dll's among many Dll's in a Project. Pin
Vishal_K8927-Mar-13 1:36
Vishal_K8927-Mar-13 1:36 
AnswerRe: To Identify .Net Dll's among many Dll's in a Project. Pin
Richard MacCutchan27-Mar-13 3:51
mveRichard MacCutchan27-Mar-13 3:51 
QuestionAdditional Include Directories Pin
bkelly1324-Mar-13 9:47
bkelly1324-Mar-13 9:47 
AnswerRe: Additional Include Directories Pin
Garth J Lancaster24-Mar-13 11:32
professionalGarth J Lancaster24-Mar-13 11:32 
GeneralRe: Additional Include Directories Pin
bkelly1324-Mar-13 12:15
bkelly1324-Mar-13 12:15 
GeneralRe: Additional Include Directories Pin
H.Brydon26-Mar-13 16:32
professionalH.Brydon26-Mar-13 16:32 
AnswerRe: Additional Include Directories Pin
dusty_dex24-Mar-13 11:41
dusty_dex24-Mar-13 11:41 
GeneralRe: Additional Include Directories Pin
bkelly1324-Mar-13 12:26
bkelly1324-Mar-13 12:26 
AnswerRe: Additional Include Directories Pin
SoMad24-Mar-13 13:26
professionalSoMad24-Mar-13 13:26 
GeneralRe: Additional Include Directories Pin
bkelly1324-Mar-13 13:47
bkelly1324-Mar-13 13:47 
GeneralRe: Additional Include Directories Pin
SoMad24-Mar-13 14:00
professionalSoMad24-Mar-13 14:00 
GeneralRe: Additional Include Directories Pin
bkelly1324-Mar-13 14:11
bkelly1324-Mar-13 14:11 
GeneralRe: Additional Include Directories Pin
SoMad24-Mar-13 14:40
professionalSoMad24-Mar-13 14:40 
AnswerRe: Additional Include Directories Pin
Richard MacCutchan24-Mar-13 23:37
mveRichard MacCutchan24-Mar-13 23:37 
GeneralRe: Additional Include Directories Pin
bkelly1325-Mar-13 16:14
bkelly1325-Mar-13 16:14 

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.