Click here to Skip to main content
16,004,854 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralISAPI Pin
Chernobog115-Apr-04 4:23
Chernobog115-Apr-04 4:23 
GeneralRe: ISAPI Pin
basementman15-Apr-04 5:31
basementman15-Apr-04 5:31 
GeneralRestricting file opening with Only one instance of application like Acrobat Reader Pin
Adi Narayana15-Apr-04 4:21
Adi Narayana15-Apr-04 4:21 
GeneralRe: Restring file opening with Only one instance of application like Acrobat Reader Pin
basementman15-Apr-04 4:25
basementman15-Apr-04 4:25 
GeneralRe: Restring file opening with Only one instance of application like Acrobat Reader Pin
Adi Narayana15-Apr-04 4:37
Adi Narayana15-Apr-04 4:37 
GeneralRe: Restring file opening with Only one instance of application like Acrobat Reader Pin
vcplusplus15-Apr-04 5:40
vcplusplus15-Apr-04 5:40 
GeneralRe: Restricting file opening with Only one instance of application like Acrobat Reader Pin
David Crow15-Apr-04 7:09
David Crow15-Apr-04 7:09 
GeneralRe: Restricting file opening with Only one instance of application like Acrobat Reader Pin
Joel Lucsy16-Apr-04 3:32
Joel Lucsy16-Apr-04 3:32 
To further expound on the already mentioned single-instance code, you then need to pass the right data to the existing app.

One method I've used in a prodcut is to create a memory-mapped file to store the new filename and then broadcast a registered windows message to all apps. When the existing app sees this message it knows to open the memory-mapped file and read it's contents. Once it does that, it returns a correct response to the message which the app sending the message knows that it's done and can exit immediately.

If you need better details, let me know.

--
Joel Lucsy
GeneralRe: Restricting file opening with Only one instance of application like Acrobat Reader Pin
Adi Narayana19-Apr-04 3:54
Adi Narayana19-Apr-04 3:54 
GeneralRe: Restricting file opening with Only one instance of application like Acrobat Reader Pin
Joel Lucsy19-Apr-04 7:11
Joel Lucsy19-Apr-04 7:11 
GeneralRe: Restricting file opening with Only one instance of application like Acrobat Reader Pin
Blake Miller19-Apr-04 9:03
Blake Miller19-Apr-04 9:03 
GeneralRe: Restricting file opening with Only one instance of application like Acrobat Reader Pin
Joel Lucsy19-Apr-04 9:10
Joel Lucsy19-Apr-04 9:10 
Generaltemplate problem & remove_if Pin
Anonymous15-Apr-04 4:11
Anonymous15-Apr-04 4:11 
GeneralRe: template problem & remove_if Pin
antlers15-Apr-04 11:32
antlers15-Apr-04 11:32 
GeneralRe: template problem & remove_if Pin
Anonymous15-Apr-04 22:18
Anonymous15-Apr-04 22:18 
GeneralActiveX Control Pin
roadragedave15-Apr-04 3:39
roadragedave15-Apr-04 3:39 
GeneralRe: ActiveX Control Pin
Cedric Moonen15-Apr-04 3:52
Cedric Moonen15-Apr-04 3:52 
GeneralRe: ActiveX Control Pin
roadragedave15-Apr-04 4:30
roadragedave15-Apr-04 4:30 
GeneralDevice context problems Pin
mikewithersone15-Apr-04 3:34
mikewithersone15-Apr-04 3:34 
GeneralRe: Device context problems Pin
PJ Arends15-Apr-04 6:05
professionalPJ Arends15-Apr-04 6:05 
GeneralRe: Device context problems Pin
mikewithersone15-Apr-04 7:34
mikewithersone15-Apr-04 7:34 
GeneralRe: Device context problems Pin
PJ Arends15-Apr-04 11:45
professionalPJ Arends15-Apr-04 11:45 
GeneralRe: Device context problems Pin
mikewithersone15-Apr-04 12:47
mikewithersone15-Apr-04 12:47 
GeneralRe: Device context problems Pin
PJ Arends15-Apr-04 12:55
professionalPJ Arends15-Apr-04 12:55 
GeneralRe: Device context problems Pin
mikewithersone15-Apr-04 13:24
mikewithersone15-Apr-04 13:24 

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.