Click here to Skip to main content
15,913,669 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalimage processing under visual c++ 6... Pin
Anonymous30-Nov-03 8:51
Anonymous30-Nov-03 8:51 
GeneralRe: image processing under visual c++ 6... Pin
Christian Graus30-Nov-03 9:12
protectorChristian Graus30-Nov-03 9:12 
GeneralParent and child dialogs Pin
J.B.30-Nov-03 7:28
J.B.30-Nov-03 7:28 
QuestionHow to destroy several instances of a dialog-derived class? Pin
julych30-Nov-03 7:24
julych30-Nov-03 7:24 
AnswerRe: How to destroy several instances of a dialog-derived class? Pin
Gareth Johnson30-Nov-03 8:44
sussGareth Johnson30-Nov-03 8:44 
Generaltoolbar Pin
Dudi Avramov30-Nov-03 6:15
Dudi Avramov30-Nov-03 6:15 
GeneralRe: toolbar Pin
Dudi Avramov30-Nov-03 6:26
Dudi Avramov30-Nov-03 6:26 
QuestionHow to Send an event from an Automation Server to its Client? Pin
Michigan185430-Nov-03 6:07
Michigan185430-Nov-03 6:07 
How to Send an event from an Automation Server to its Client?

Hello,

I wrote an Automation Server. I know how a client can get/set properties belonging to a server, but I am not sure of the right way a Server can fire events to its client.

I tried this solution: (It does actually work, but maybe this solution is "naive" and will not work in some cases)

1) The client sends (once for good), the handle of its main window (or its thread ID.
2) When the server wants to fire an event to the client, it calls either ::SendMessage or ::PostThreadMessage with an agreed message number.

Is there a better solution?
I read about IConnectionPoint. Is this relevant to my problem? Can you send me a link to an example?

Many Thanks,
Mike

AnswerRe: How to Send an event from an Automation Server to its Client? Pin
igor19601-Dec-03 9:27
igor19601-Dec-03 9:27 
QuestionWhy SetFont don't work with CEdit? Pin
Ravi Prabhakar30-Nov-03 5:22
Ravi Prabhakar30-Nov-03 5:22 
AnswerRe: Why SetFont don't work with CEdit? Pin
Michigan185430-Nov-03 6:16
Michigan185430-Nov-03 6:16 
GeneralCOleDropTarget.Register() problem - HELP ! Pin
Still learning how to code30-Nov-03 5:13
Still learning how to code30-Nov-03 5:13 
GeneralRe: COleDropTarget.Register() problem - HELP ! Pin
Jörgen Sigvardsson30-Nov-03 11:47
Jörgen Sigvardsson30-Nov-03 11:47 
GeneralRe: COleDropTarget.Register() problem - HELP ! Pin
Still learning how to code30-Nov-03 21:42
Still learning how to code30-Nov-03 21:42 
GeneralShellExecute problem Pin
nss30-Nov-03 5:04
nss30-Nov-03 5:04 
GeneralRe: ShellExecute problem Pin
BaldwinMartin30-Nov-03 6:20
BaldwinMartin30-Nov-03 6:20 
GeneralRe: ShellExecute problem Pin
nss30-Nov-03 6:53
nss30-Nov-03 6:53 
GeneralRe: ShellExecute problem Pin
Michael Dunn30-Nov-03 8:38
sitebuilderMichael Dunn30-Nov-03 8:38 
GeneralRe: ShellExecute problem Pin
BaldwinMartin30-Nov-03 19:49
BaldwinMartin30-Nov-03 19:49 
GeneralSetting File Attributes Pin
#realJSOP30-Nov-03 3:44
professional#realJSOP30-Nov-03 3:44 
GeneralRe: Setting File Attributes Pin
Michael Dunn30-Nov-03 8:49
sitebuilderMichael Dunn30-Nov-03 8:49 
QuestionHow Creating Login with Password included by Dot? Pin
YULISA30-Nov-03 3:43
YULISA30-Nov-03 3:43 
QuestionHow Creating Login with Password included by Dot? Pin
YULISA30-Nov-03 3:38
YULISA30-Nov-03 3:38 
GeneralUSB Port & IEEE1394 Pin
mhmoud rawas30-Nov-03 2:22
mhmoud rawas30-Nov-03 2:22 
GeneralHelp of the program Pin
Member 64882830-Nov-03 2:04
Member 64882830-Nov-03 2:04 

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.