The one and only instance
-
I have a full com serverwith three interfaces. A different client will access each of the three interfaces at overlapping times. I only want one instance of the .EXE to be running. As each of the client apps performs its _CreateInstance, a new instance of the app is launched. Giving me three altogether. Is this possible? How is it done? I am familiar with the technique of using FindWindow and setting the focus to the already existing window to ensure only one copy of an app runs at a time. I don't think it applies here because 1) No window, the client apps are NT services. and 2) I don't think the interface would be attached if I simply re-directed the focus and exited. Can anyone help, please? Thanks for the help, Bill
-
I have a full com serverwith three interfaces. A different client will access each of the three interfaces at overlapping times. I only want one instance of the .EXE to be running. As each of the client apps performs its _CreateInstance, a new instance of the app is launched. Giving me three altogether. Is this possible? How is it done? I am familiar with the technique of using FindWindow and setting the focus to the already existing window to ensure only one copy of an app runs at a time. I don't think it applies here because 1) No window, the client apps are NT services. and 2) I don't think the interface would be attached if I simply re-directed the focus and exited. Can anyone help, please? Thanks for the help, Bill
Try searching http://discuss.microsoft.com/archives/atl.html for singleton
Todd Smith