Click here to Skip to main content
15,794,347 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: how to get the executable path in mfc Pin
includeh1024-Aug-03 5:09
includeh1024-Aug-03 5:09 
GeneralRe: how to get the executable path in mfc Pin
alexissss24-Aug-03 6:41
alexissss24-Aug-03 6:41 
AnswerRe: how to get the executable path in mfc Pin
Kuniva24-Aug-03 12:32
Kuniva24-Aug-03 12:32 
GeneralSave in xml Pin
lxxrya00124-Aug-03 3:35
lxxrya00124-Aug-03 3:35 
GeneralRe: Drawing to canvis and saving Pin
John M. Drescher24-Aug-03 5:26
John M. Drescher24-Aug-03 5:26 
GeneralHelp me to Create Splitter Window Using SDK Pin
HemantR...24-Aug-03 1:22
HemantR...24-Aug-03 1:22 
GeneralRe: Help me to Create Splitter Window Using SDK Pin
skaanji24-Aug-03 3:47
skaanji24-Aug-03 3:47 
GeneralProblem with mutex Pin
Artem Moroz24-Aug-03 0:25
Artem Moroz24-Aug-03 0:25 
I have a problem with named mutex.

In my 1st process I am creating mutex
<br />
CreateMutex(NULL,TRUE,"Process_Running"); <br />
// mutex will be automatically deleted when process ends.<br />
if(GetLastError() == ERROR_ALREADY_EXISTS) { <br />
AfxMessageBox(IDS_ALREADYRUN);<br />
}<br />


Then, in 2nd process I am try to determine, whether 1st process is running:
<br />
HANDLE hMutex = OpenMutex(0,FALSE,"Process_Running");<br />
<br />
if (hMutex != NULL)<br />
{<br />
CloseHandle(hMutex);<br />
// Do something...<br />
}<br />


But in this code hMutex is always NULL ! Even if 1st process is running!
What am I doing wrong ?
GeneralRe: Problem with mutex Pin
John M. Drescher24-Aug-03 5:33
John M. Drescher24-Aug-03 5:33 
GeneralRe: Problem with mutex Pin
Michael Dunn24-Aug-03 6:50
sitebuilderMichael Dunn24-Aug-03 6:50 
GeneralRe: Problem with mutex Pin
Artem Moroz24-Aug-03 11:08
Artem Moroz24-Aug-03 11:08 
Generallinking dialog to menu on SDI Pin
coda_x23-Aug-03 22:18
coda_x23-Aug-03 22:18 
GeneralPrinting question Pin
DougW4823-Aug-03 20:27
DougW4823-Aug-03 20:27 
GeneralRe: Printing question Pin
Ryan Binns24-Aug-03 16:20
Ryan Binns24-Aug-03 16:20 
GeneralThe MFC CreateControl() Pin
tongc23-Aug-03 20:04
tongc23-Aug-03 20:04 
GeneralNeed help on how to add a new line to an edit control Pin
Snyp23-Aug-03 18:04
Snyp23-Aug-03 18:04 
GeneralRe: Need help on how to add a new line to an edit control Pin
Tom Archer23-Aug-03 18:56
Tom Archer23-Aug-03 18:56 
Generalquestion about smtp class Pin
Beer2623-Aug-03 18:02
Beer2623-Aug-03 18:02 
GeneralRe: question about smtp class Pin
Alexander M.,24-Aug-03 7:33
Alexander M.,24-Aug-03 7:33 
GeneralHey I have a question about the edit control Pin
Snyp23-Aug-03 13:38
Snyp23-Aug-03 13:38 
GeneralRe: Hey I have a question about the edit control Pin
DougW4823-Aug-03 20:09
DougW4823-Aug-03 20:09 
GeneralRe: Hey I have a question about the edit control Pin
Snyp24-Aug-03 9:02
Snyp24-Aug-03 9:02 
Generalumm stupid question i guess Pin
Kuniva23-Aug-03 13:19
Kuniva23-Aug-03 13:19 
GeneralRe: umm stupid question i guess Pin
ZoogieZork23-Aug-03 13:53
ZoogieZork23-Aug-03 13:53 
GeneralGetting the sent messages from a game... Pin
Anonymous23-Aug-03 13:08
Anonymous23-Aug-03 13:08 

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.