Click here to Skip to main content
15,900,108 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionMultiple selection in Tree control(Non MFC) Pin
Ram Shelke17-Sep-12 20:10
Ram Shelke17-Sep-12 20:10 
AnswerRe: Multiple selection in Tree control(Non MFC) Pin
Richard MacCutchan17-Sep-12 22:35
mveRichard MacCutchan17-Sep-12 22:35 
GeneralRe: Multiple selection in Tree control(Non MFC) Pin
Ram Shelke17-Sep-12 23:01
Ram Shelke17-Sep-12 23:01 
GeneralRe: Multiple selection in Tree control(Non MFC) Pin
Richard MacCutchan17-Sep-12 23:12
mveRichard MacCutchan17-Sep-12 23:12 
AnswerRe: Multiple selection in Tree control(Non MFC) Pin
Chris Meech18-Sep-12 3:59
Chris Meech18-Sep-12 3:59 
GeneralRe: Multiple selection in Tree control(Non MFC) Pin
Richard MacCutchan18-Sep-12 4:10
mveRichard MacCutchan18-Sep-12 4:10 
GeneralRe: Multiple selection in Tree control(Non MFC) Pin
Chris Meech18-Sep-12 4:15
Chris Meech18-Sep-12 4:15 
QuestionSingle system instance Pin
Taria16-Sep-12 23:16
Taria16-Sep-12 23:16 
Hi
I have tried to use a method from long ago:
http://beta.codeproject.com/Articles/358/Avoiding-Multiple-Instances-of-an-Application


BOOL CMyApp::InitApplication()
{
// there can be only one instance of this application, that is per windows user logon session!...?
if(::CreateMutex(NULL,FALSE,_T("{9C114FA0-0D7A-4e3f-8195-BE59EFC3EA42}"))==NULL)
return FALSE;
if(::GetLastError()==ERROR_ALREADY_EXISTS || ::GetLastError()==ERROR_ACCESS_DENIED)
return FALSE;

return CWinApp::InitApplication();
}


Simultaneous users can still create an instance each. Why is that? Do anyone have an (easy) solution?

Using Windows XP SP3 with VC 6.0.
Thanks!...?
AnswerRe: Single system instance PinPopular
Jochen Arndt16-Sep-12 23:35
professionalJochen Arndt16-Sep-12 23:35 
GeneralRe: Single system instance Pin
Michael Haephrati18-Sep-12 10:48
professionalMichael Haephrati18-Sep-12 10:48 
QuestionHow to recognize a table in a pdf file Pin
LuigiSc216-Sep-12 4:10
LuigiSc216-Sep-12 4:10 
AnswerRe: How to recognize a table in a pdf file Pin
Mohibur Rashid16-Sep-12 4:40
professionalMohibur Rashid16-Sep-12 4:40 
QuestionHint for the network check to be done in c++ Pin
en41115-Sep-12 2:39
en41115-Sep-12 2:39 
AnswerRe: Hint for the network chek Pin
Richard MacCutchan15-Sep-12 3:16
mveRichard MacCutchan15-Sep-12 3:16 
QuestionHow can i create a numeric constant from a numeric variable ? Pin
s.n.arruda15-Sep-12 0:57
s.n.arruda15-Sep-12 0:57 
AnswerRe: How can i create a numeric constant from a numeric variable ? Pin
pasztorpisti15-Sep-12 1:08
pasztorpisti15-Sep-12 1:08 
AnswerRe: How can i create a numeric constant from a numeric variable ? Pin
Richard MacCutchan15-Sep-12 2:31
mveRichard MacCutchan15-Sep-12 2:31 
QuestionConversion of image Handle hDib to Char* array in C++ Pin
AhmdAxf14-Sep-12 2:08
AhmdAxf14-Sep-12 2:08 
QuestionRe: Conversion of image Handle hDib to Char* array in C++ Pin
CPallini14-Sep-12 2:25
mveCPallini14-Sep-12 2:25 
AnswerRe: Conversion of image Handle hDib to Char* array in C++ Pin
AhmdAxf14-Sep-12 2:46
AhmdAxf14-Sep-12 2:46 
QuestionRe: Conversion of image Handle hDib to Char* array in C++ Pin
CPallini14-Sep-12 2:58
mveCPallini14-Sep-12 2:58 
AnswerRe: Conversion of image Handle hDib to Char* array in C++ Pin
AhmdAxf14-Sep-12 3:13
AhmdAxf14-Sep-12 3:13 
QuestionRe: Conversion of image Handle hDib to Char* array in C++ Pin
CPallini14-Sep-12 3:16
mveCPallini14-Sep-12 3:16 
AnswerRe: Conversion of image Handle hDib to Char* array in C++ Pin
AhmdAxf14-Sep-12 3:23
AhmdAxf14-Sep-12 3:23 
GeneralRe: Conversion of image Handle hDib to Char* array in C++ Pin
Chris Losinger14-Sep-12 5:56
professionalChris Losinger14-Sep-12 5:56 

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.