Click here to Skip to main content
15,115,667 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: CoCreateInstance Problem & GetLastError 0x0000007e Pin
yihung.hung12-Apr-13 15:32
Memberyihung.hung12-Apr-13 15:32 
GeneralRe: CoCreateInstance Problem & GetLastError 0x0000007e Pin
Richard MacCutchan12-Apr-13 22:55
mveRichard MacCutchan12-Apr-13 22:55 
AnswerRe: CoCreateInstance Problem & GetLastError 0x0000007e Pin
Stephen Hewitt12-Apr-13 0:32
MemberStephen Hewitt12-Apr-13 0:32 
GeneralRe: CoCreateInstance Problem & GetLastError 0x0000007e Pin
yihung.hung12-Apr-13 16:31
Memberyihung.hung12-Apr-13 16:31 
GeneralRe: CoCreateInstance Problem & GetLastError 0x0000007e Pin
Stephen Hewitt12-Apr-13 20:11
MemberStephen Hewitt12-Apr-13 20:11 
GeneralRe: CoCreateInstance Problem & GetLastError 0x0000007e Pin
yihung.hung13-Apr-13 3:52
Memberyihung.hung13-Apr-13 3:52 
GeneralRe: CoCreateInstance Problem & GetLastError 0x0000007e Pin
Richard MacCutchan12-Apr-13 23:00
mveRichard MacCutchan12-Apr-13 23:00 
Question[SOLVED] IHTMLDOCUMENT2 get_Script problem in thread Pin
mr_m_imran28-Mar-13 9:20
Membermr_m_imran28-Mar-13 9: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 9:48
mveRichard MacCutchan28-Mar-13 9:48 
GeneralRe: IHTMLDOCUMENT2 get_Script problem in thread Pin
mr_m_imran28-Mar-13 18:36
Membermr_m_imran28-Mar-13 18:36 
QuestionTo Identify .Net Dll's among many Dll's in a Project. Pin
Vishal_K8927-Mar-13 2:36
MemberVishal_K8927-Mar-13 2:36 
AnswerRe: To Identify .Net Dll's among many Dll's in a Project. Pin
Richard MacCutchan27-Mar-13 4:51
mveRichard MacCutchan27-Mar-13 4:51 
QuestionAdditional Include Directories Pin
bkelly1324-Mar-13 10:47
Memberbkelly1324-Mar-13 10:47 
AnswerRe: Additional Include Directories Pin
Garth J Lancaster24-Mar-13 12:32
mveGarth J Lancaster24-Mar-13 12:32 
GeneralRe: Additional Include Directories Pin
bkelly1324-Mar-13 13:15
Memberbkelly1324-Mar-13 13:15 
GeneralRe: Additional Include Directories Pin
H.Brydon26-Mar-13 17:32
professionalH.Brydon26-Mar-13 17:32 
AnswerRe: Additional Include Directories Pin
dusty_dex24-Mar-13 12:41
Memberdusty_dex24-Mar-13 12:41 
GeneralRe: Additional Include Directories Pin
bkelly1324-Mar-13 13:26
Memberbkelly1324-Mar-13 13:26 
AnswerRe: Additional Include Directories Pin
SoMad24-Mar-13 14:26
professionalSoMad24-Mar-13 14:26 
GeneralRe: Additional Include Directories Pin
bkelly1324-Mar-13 14:47
Memberbkelly1324-Mar-13 14:47 
GeneralRe: Additional Include Directories Pin
SoMad24-Mar-13 15:00
professionalSoMad24-Mar-13 15:00 
GeneralRe: Additional Include Directories Pin
bkelly1324-Mar-13 15:11
Memberbkelly1324-Mar-13 15:11 
GeneralRe: Additional Include Directories Pin
SoMad24-Mar-13 15:40
professionalSoMad24-Mar-13 15:40 
AnswerRe: Additional Include Directories Pin
Richard MacCutchan25-Mar-13 0:37
mveRichard MacCutchan25-Mar-13 0:37 
GeneralRe: Additional Include Directories Pin
bkelly1325-Mar-13 17:14
Memberbkelly1325-Mar-13 17: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.