Click here to Skip to main content
15,905,238 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Activating Single instance Pin
laiju10-Sep-05 0:19
laiju10-Sep-05 0:19 
AnswerRe: Activating Single instance Pin
Bob Stanneveld10-Sep-05 2:02
Bob Stanneveld10-Sep-05 2:02 
GeneralRe: Activating Single instance Pin
laiju10-Sep-05 2:27
laiju10-Sep-05 2:27 
GeneralRe: Activating Single instance Pin
Bob Stanneveld10-Sep-05 6:11
Bob Stanneveld10-Sep-05 6:11 
AnswerRe: Activating Single instance Pin
Ted Ferenc10-Sep-05 2:08
Ted Ferenc10-Sep-05 2:08 
GeneralRe: Activating Single instance Pin
PJ Arends10-Sep-05 8:51
professionalPJ Arends10-Sep-05 8:51 
AnswerRe: Activating Single instance Pin
PJ Arends10-Sep-05 8:48
professionalPJ Arends10-Sep-05 8:48 
GeneralRe: Activating Single instance Pin
Jörgen Sigvardsson10-Sep-05 9:33
Jörgen Sigvardsson10-Sep-05 9:33 
One way to do it is to create a mutex and an event in the application. The mutex is used to determine whether the application is already running or not. The event is used to signal the process which created it to show itself. All you need to do in the "single instance" process, is to listen to the event and respond to signals sent on it.

See CreateEvent(), SetEvent(), and ResetEvent() in the MSDN docs.

Good music: In my rosary[^]
AnswerRe: Activating Single instance Pin
David Crow10-Sep-05 17:14
David Crow10-Sep-05 17:14 
AnswerRe: Activating Single instance Pin
PraxUnited9-Oct-09 2:26
PraxUnited9-Oct-09 2:26 
Questionjpeglib.h Pin
aasstt9-Sep-05 21:31
aasstt9-Sep-05 21:31 
AnswerRe: jpeglib.h Pin
Indivara10-Sep-05 3:55
professionalIndivara10-Sep-05 3:55 
QuestionSerial port and USB Pin
shiraztk9-Sep-05 20:52
shiraztk9-Sep-05 20:52 
AnswerRe: Serial port and USB Pin
Tim Orr9-Sep-05 21:34
Tim Orr9-Sep-05 21:34 
GeneralRe: Serial port and USB Pin
Bob Stanneveld10-Sep-05 2:07
Bob Stanneveld10-Sep-05 2:07 
QuestionPrint in PrintPreview problem Pin
mikobi9-Sep-05 20:26
mikobi9-Sep-05 20:26 
AnswerRe: Print in PrintPreview problem Pin
David Crow10-Sep-05 17:15
David Crow10-Sep-05 17:15 
GeneralRe: Print in PrintPreview problem Pin
mikobi11-Sep-05 19:21
mikobi11-Sep-05 19:21 
GeneralRe: Print in PrintPreview problem Pin
David Crow12-Sep-05 2:38
David Crow12-Sep-05 2:38 
QuestionCListCtrl: Change position first/last item position in Icon mode Pin
phieu9-Sep-05 18:03
phieu9-Sep-05 18:03 
AnswerRe: CListCtrl: Change position first/last item position in Icon mode Pin
Anonymous9-Sep-05 23:31
Anonymous9-Sep-05 23:31 
QuestionDeclaring Vectors Pin
Anonymous9-Sep-05 15:20
Anonymous9-Sep-05 15:20 
AnswerRe: Declaring Vectors Pin
Chris Losinger9-Sep-05 16:35
professionalChris Losinger9-Sep-05 16:35 
Answer[Message Deleted] Pin
SummoningDan9-Sep-05 16:45
SummoningDan9-Sep-05 16:45 
QuestionBitmap button dose not displayed Pin
johnnyXP9-Sep-05 11:54
johnnyXP9-Sep-05 11:54 

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.