Click here to Skip to main content
16,020,512 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionbutton coordinates for office applications e.g. word, excel etc. Pin
SQU24-Nov-08 0:29
SQU24-Nov-08 0:29 
Questionfire an event Pin
prasadbuddhika23-Nov-08 23:59
prasadbuddhika23-Nov-08 23:59 
JokeRe: fire an event [modified] Pin
CPallini24-Nov-08 0:13
mveCPallini24-Nov-08 0:13 
AnswerRe: fire an event Pin
Code-o-mat24-Nov-08 1:02
Code-o-mat24-Nov-08 1:02 
QuestionError executing function ExecWB(OLECMDID_PRINT, OLECMDEXECOPT_PROMPTUSER, NULL, NULL) Pin
Md Saleem Navalur23-Nov-08 23:54
Md Saleem Navalur23-Nov-08 23:54 
AnswerRe: Error executing function ExecWB(OLECMDID_PRINT, OLECMDEXECOPT_PROMPTUSER, NULL, NULL) Pin
Ahmed Charfeddine24-Nov-08 3:08
Ahmed Charfeddine24-Nov-08 3:08 
GeneralRe: Error executing function ExecWB(OLECMDID_PRINT, OLECMDEXECOPT_PROMPTUSER, NULL, NULL) Pin
Md Saleem Navalur24-Nov-08 19:57
Md Saleem Navalur24-Nov-08 19:57 
GeneralRe: Error executing function ExecWB(OLECMDID_PRINT, OLECMDEXECOPT_PROMPTUSER, NULL, NULL) Pin
Ahmed Charfeddine24-Nov-08 21:47
Ahmed Charfeddine24-Nov-08 21:47 
I see..
I think this is because of the way how OLE request are dispatched : the OLE client sends a request which is not handled within the context of it current thread, rather by another thread (of course this may be dependent on the type of OLE server which you are dealing with).
Then the client blocks on sort of double events : one related to a timeout for a timer that has already been started ny the client, the other is related to a notification sent back by the OLE server which it finalizes the request job.
In your case, what happens is that the timeout occurs before the request is done.This has lead to a bizarre situation between the OLE client and the OLE server. Of course because of the way this has been internally coded (not because of your code).
I think your only solution is to try play on the timeout value or even force somehow the OLE framework not to show the busy dialog..
Link : http://support.microsoft.com/kb/248019[^]

Good luck.
GeneralRe: Error executing function ExecWB(OLECMDID_PRINT, OLECMDEXECOPT_PROMPTUSER, NULL, NULL) Pin
Md Saleem Navalur25-Nov-08 1:03
Md Saleem Navalur25-Nov-08 1:03 
GeneralRe: Error executing function ExecWB(OLECMDID_PRINT, OLECMDEXECOPT_PROMPTUSER, NULL, NULL) Pin
Ahmed Charfeddine25-Nov-08 2:14
Ahmed Charfeddine25-Nov-08 2:14 
GeneralRe: Error executing function ExecWB(OLECMDID_PRINT, OLECMDEXECOPT_PROMPTUSER, NULL, NULL) Pin
Axel Zur3-Feb-11 20:22
Axel Zur3-Feb-11 20:22 
QuestionProblem using Pointer Functions Pin
ajorge200823-Nov-08 23:32
ajorge200823-Nov-08 23:32 
AnswerRe: Problem using Pointer Functions Pin
CPallini23-Nov-08 23:40
mveCPallini23-Nov-08 23:40 
GeneralRe: Problem using Pointer Functions Pin
ajorge200824-Nov-08 0:18
ajorge200824-Nov-08 0:18 
GeneralRe: Problem using Pointer Functions Pin
Cedric Moonen24-Nov-08 0:56
Cedric Moonen24-Nov-08 0:56 
GeneralRe: Problem using Pointer Functions Pin
ajorge200824-Nov-08 1:03
ajorge200824-Nov-08 1:03 
GeneralRe: Problem using Pointer Functions Pin
CPallini24-Nov-08 1:03
mveCPallini24-Nov-08 1:03 
GeneralRe: Problem using Pointer Functions Pin
ajorge200824-Nov-08 1:09
ajorge200824-Nov-08 1:09 
QuestionRe: Problem using Pointer Functions Pin
CPallini24-Nov-08 1:32
mveCPallini24-Nov-08 1:32 
AnswerRe: Problem using Pointer Functions Pin
ajorge200824-Nov-08 1:39
ajorge200824-Nov-08 1:39 
GeneralRe: Problem using Pointer Functions Pin
CPallini24-Nov-08 1:42
mveCPallini24-Nov-08 1:42 
Questionhow to access Pin
ramina sen23-Nov-08 23:28
ramina sen23-Nov-08 23:28 
AnswerRe: how to access Pin
CPallini23-Nov-08 23:38
mveCPallini23-Nov-08 23:38 
QuestionWhy CreateCompatibleDC not only CreateDC? Pin
kDevloper23-Nov-08 23:24
kDevloper23-Nov-08 23:24 
AnswerRe: Why CreateCompatibleDC not only CreateDC? Pin
akirilov24-Nov-08 0:59
akirilov24-Nov-08 0:59 

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.