Click here to Skip to main content
15,909,324 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Unable to control mouse events Pin
AprNgp5-Mar-09 0:49
AprNgp5-Mar-09 0:49 
GeneralRe: Unable to control mouse events Pin
«_Superman_»5-Mar-09 0:57
professional«_Superman_»5-Mar-09 0:57 
GeneralRe: Unable to control mouse events Pin
Akt_4_U5-Mar-09 0:47
Akt_4_U5-Mar-09 0:47 
QuestionAssertion in atlsimpstr Pin
Davitor4-Mar-09 23:47
Davitor4-Mar-09 23:47 
AnswerRe: Assertion in atlsimpstr Pin
Hamid_RT4-Mar-09 23:59
Hamid_RT4-Mar-09 23:59 
AnswerRe: Assertion in atlsimpstr Pin
Cedric Moonen5-Mar-09 0:06
Cedric Moonen5-Mar-09 0:06 
QuestionProblem in Mutex with System Tray Icon. Pin
Le@rner4-Mar-09 23:25
Le@rner4-Mar-09 23:25 
AnswerRe: Problem in Mutex with System Tray Icon. Pin
Code-o-mat4-Mar-09 23:59
Code-o-mat4-Mar-09 23:59 
First of all, if i were you i'd use a different name for the mutex because "GlobalMainMutex" doesn't seem to be that unique as it should, maybe use a GUID generator and use the generated code as name, or as part of the name of your mutex.
To show the already running instance you could either broadcast a registered message when your new instance detects another instance running upon which your program brings up its window, this sounds a tiny bit overkill (post/send a message to EVERY running app in the system) but it is easy to do, or you could try to find your own process by enumerating processes and checking their names or executable names or whatever and posting a thread message to it, or you could enumerate windows on the system and if you find the one belonging to your process (for example by class name) post a message to it.

p.s: to avoid confusement, i don't mean use a GUID generator to generate a new name every time your app starts, since that would -of course- make the whole idea useless...

> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Life: great graphics, but the gameplay sux. <

GeneralRe: Problem in Mutex with System Tray Icon. Pin
Le@rner5-Mar-09 0:14
Le@rner5-Mar-09 0:14 
GeneralRe: Problem in Mutex with System Tray Icon. Pin
Code-o-mat5-Mar-09 0:34
Code-o-mat5-Mar-09 0:34 
GeneralRe: Problem in Mutex with System Tray Icon. Pin
Le@rner5-Mar-09 1:13
Le@rner5-Mar-09 1:13 
GeneralRe: Problem in Mutex with System Tray Icon. Pin
Code-o-mat5-Mar-09 1:22
Code-o-mat5-Mar-09 1:22 
GeneralRe: Problem in Mutex with System Tray Icon. Pin
Le@rner7-Aug-09 18:17
Le@rner7-Aug-09 18:17 
GeneralRe: Problem in Mutex with System Tray Icon. Pin
Code-o-mat7-Aug-09 21:29
Code-o-mat7-Aug-09 21:29 
GeneralRe: Problem in Mutex with System Tray Icon. Pin
Le@rner7-Aug-09 21:49
Le@rner7-Aug-09 21:49 
GeneralRe: Problem in Mutex with System Tray Icon. Pin
Code-o-mat7-Aug-09 21:59
Code-o-mat7-Aug-09 21:59 
GeneralRe: Problem in Mutex with System Tray Icon. Pin
Le@rner7-Aug-09 23:04
Le@rner7-Aug-09 23:04 
QuestionProblem sending SMS using EDGE modem Pin
efarook4-Mar-09 22:59
efarook4-Mar-09 22:59 
QuestionHow to override OnOK() and OnESC() in an instance of CDialog? Pin
B_U_A4-Mar-09 22:43
B_U_A4-Mar-09 22:43 
AnswerRe: How to override OnOK() and OnESC() in an instance of CDialog? Pin
Cedric Moonen4-Mar-09 22:47
Cedric Moonen4-Mar-09 22:47 
GeneralRe: How to override OnOK() and OnESC() in an instance of CDialog? Pin
B_U_A4-Mar-09 23:24
B_U_A4-Mar-09 23:24 
GeneralRe: How to override OnOK() and OnESC() in an instance of CDialog? Pin
Hamid_RT4-Mar-09 23:55
Hamid_RT4-Mar-09 23:55 
QuestionHow to receive buffer from a directx based game Pin
kallol kumar4-Mar-09 20:56
kallol kumar4-Mar-09 20:56 
AnswerRe: How to receive buffer from a directx based game [modified] Pin
Code-o-mat4-Mar-09 21:59
Code-o-mat4-Mar-09 21:59 
GeneralRe: How to receive buffer from a directx based game Pin
kallol kumar5-Mar-09 1:15
kallol kumar5-Mar-09 1:15 

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.