Single Instance MFC Dialog APP
Posted on 1998-09-03
I have created an MFC Dialog application with automation support. I have added functionality to the automation object which manipulates the dialog.
I can now use VB / Delphi or whatever to create the ole object, unfortunately the MFC creates a new dialog each time I create a new OLE object. I think the application is being re-executed each time I request a new OLE object.
I want the server to hand out multiple OLE objects to multiple clients, not re-execute each time.
How do I make each instance of the CCmdTarget (OLE automation object) talk to one dialog (the same one).
I am basically writing a type of event log window that will display messages from clients that call it. The clients will be separate processes. The first client will be the one that creates the dialog for the first time.
I have done this before in delphi, so I know it can be done, but I am struggling to get the VC++/MFC version working.