Click here to Skip to main content
15,890,579 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Intercept a WM message into a C++ class Pin
Baltoro13-Aug-09 14:55
Baltoro13-Aug-09 14:55 
AnswerRe: Intercept a WM message into a C++ class Pin
KarstenK13-Aug-09 21:13
mveKarstenK13-Aug-09 21:13 
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 
I'm automating Word and when I call a function that doesn't return for a long time (for example a call to
app.Run(_T("FilePrint"));) it tends to freeze the UI of my app until it returns from the call, so I tried to run this code from a worker thread, but then COM complains and throws an exception RPC_E_WRONG_THREAD - "0x8001010E: The application called an interface that was marshalled for a different thread."

How can I solve this problem?




btw, there's an explanation about RPC_E_WRONG_THREAD in MSDN - INFO: Explanation of RPC_E_WRONG_THREAD Error[^], but I couldn't figure out anything from it.

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

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 
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 

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.