Click here to Skip to main content
15,900,378 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Intercept a WM message into a C++ class Pin
428814-Aug-09 4:49
428814-Aug-09 4:49 
GeneralRe: Intercept a WM message into a C++ class Pin
KarstenK16-Aug-09 20:33
mveKarstenK16-Aug-09 20:33 
GeneralRe: Intercept a WM message into a C++ class Pin
428817-Aug-09 4:49
428817-Aug-09 4:49 
AnswerRe: Intercept a WM message into a C++ class Pin
Bacon Ultimate Cheeseburger14-Aug-09 13:07
Bacon Ultimate Cheeseburger14-Aug-09 13:07 
QuestionCan I control MyApp browser extension button order in "Internet Explorer" default toolbar after installation? Pin
neocoin13-Aug-09 8:16
neocoin13-Aug-09 8:16 
QuestionCalling a COM interface from a worker thread Pin
sashoalm13-Aug-09 6:43
sashoalm13-Aug-09 6:43 
AnswerRe: Calling a COM interface from a worker thread Pin
Stuart Dootson13-Aug-09 6:51
professionalStuart Dootson13-Aug-09 6:51 
GeneralRe: Calling a COM interface from a worker thread Pin
sashoalm13-Aug-09 20:48
sashoalm13-Aug-09 20:48 
I read the article about apartments and replaced CoInitialize(NULL); with CoInitializeEx(NULL, COINIT_MULTITHREADED); in both my threads, but it still gives me the exact same error "The application called an interface that was marshalled for a different thread."

It's not really necessary for me to use multiple threads, I'm just doing it because I don't want my UI to block while I'm waiting for the COM method call to return. Do you know if there is some way to make a non-blocking COM method call akin to PostMessage vs SendMessage (I might post this as a new question on the forum btw).

There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition.
Blaise Pascal

GeneralRe: Calling a COM interface from a worker thread Pin
Stuart Dootson13-Aug-09 21:07
professionalStuart Dootson13-Aug-09 21:07 
GeneralRe: Calling a COM interface from a worker thread Pin
Stuart Dootson14-Aug-09 2:08
professionalStuart Dootson14-Aug-09 2:08 
QuestionHow to log visited URLs Pin
televes13-Aug-09 5:51
televes13-Aug-09 5:51 
AnswerRe: How to log visited URLs [modified] Pin
Bacon Ultimate Cheeseburger13-Aug-09 12:12
Bacon Ultimate Cheeseburger13-Aug-09 12:12 
JokeRe: How to log visited URLs Pin
Moak13-Aug-09 13:43
Moak13-Aug-09 13:43 
GeneralRe: How to log visited URLs Pin
televes14-Aug-09 10:51
televes14-Aug-09 10:51 
AnswerRe: How to log visited URLs Pin
kilt17-Aug-09 3:36
kilt17-Aug-09 3:36 
GeneralMSI installation: problem when Norton Antivirus is active Pin
VictorSotnikov13-Aug-09 5:47
VictorSotnikov13-Aug-09 5:47 
GeneralRe: MSI installation: problem when Norton Antivirus is active Pin
Bacon Ultimate Cheeseburger13-Aug-09 16:11
Bacon Ultimate Cheeseburger13-Aug-09 16:11 
Questionrand() causing unresolved external symbol Pin
Member 321680813-Aug-09 5:05
Member 321680813-Aug-09 5:05 
AnswerRe: rand() causing unresolved external symbol Pin
Stuart Dootson13-Aug-09 5:17
professionalStuart Dootson13-Aug-09 5:17 
GeneralRe: rand() causing unresolved external symbol Pin
Member 321680813-Aug-09 5:25
Member 321680813-Aug-09 5:25 
QuestionRe: rand() causing unresolved external symbol Pin
Randor 13-Aug-09 12:56
professional Randor 13-Aug-09 12:56 
AnswerRe: rand() causing unresolved external symbol Pin
Member 321680814-Aug-09 3:27
Member 321680814-Aug-09 3:27 
QuestionWord automation question Pin
sashoalm13-Aug-09 4:54
sashoalm13-Aug-09 4:54 
AnswerRe: Word automation question Pin
Stuart Dootson13-Aug-09 5:11
professionalStuart Dootson13-Aug-09 5:11 
GeneralRe: Word automation question Pin
sashoalm13-Aug-09 5:35
sashoalm13-Aug-09 5:35 

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.