Click here to Skip to main content
15,885,032 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Weird ::CopyFile problem Pin
ShilpiP24-May-11 21:38
ShilpiP24-May-11 21:38 
GeneralRe: Weird ::CopyFile problem Pin
od@ananzi.co.za24-May-11 21:43
od@ananzi.co.za24-May-11 21:43 
GeneralRe: Weird ::CopyFile problem Pin
ShilpiP24-May-11 22:19
ShilpiP24-May-11 22:19 
GeneralRe: Weird ::CopyFile problem Pin
smags1325-May-11 10:28
smags1325-May-11 10:28 
GeneralRe: Weird ::CopyFile problem Pin
od@ananzi.co.za24-May-11 21:38
od@ananzi.co.za24-May-11 21:38 
QuestionIdentifying a currently running application Pin
pix_programmer24-May-11 18:31
pix_programmer24-May-11 18:31 
AnswerRe: Identifying a currently running application Pin
pandit8424-May-11 18:43
pandit8424-May-11 18:43 
GeneralRe: Identifying a currently running application Pin
pix_programmer24-May-11 18:53
pix_programmer24-May-11 18:53 
I've created a Single Instance application using the following code:

if(NULL != ::CreateMutex(NULL, TRUE,_T("CSingleInstanceApp")))
	{
		long dwError = ::GetLastError();
		if(dwError == ERROR_ALREADY_EXISTS)
			//	MessageBox(NULL,L"You are Already Running Application.",L"ERROR!!",MB_OK);
			EndDialog(NULL,IDOK);
}


I've designed one project as a template and used it to build many applications. e.g I tried to run one application named "app2" while another application named "app1" is already running. But "app2" does not run. I don't want this. "app2" should not run if and only if "app2" is already running. Otherwise it has to run normal. How to do this?
GeneralRe: Identifying a currently running application Pin
ShilpiP24-May-11 19:09
ShilpiP24-May-11 19:09 
GeneralRe: Identifying a currently running application Pin
pix_programmer24-May-11 20:34
pix_programmer24-May-11 20:34 
GeneralRe: Identifying a currently running application Pin
ShilpiP24-May-11 20:42
ShilpiP24-May-11 20:42 
GeneralRe: Identifying a currently running application Pin
pix_programmer24-May-11 21:10
pix_programmer24-May-11 21:10 
GeneralRe: Identifying a currently running application Pin
ShilpiP24-May-11 21:29
ShilpiP24-May-11 21:29 
GeneralRe: Identifying a currently running application Pin
Abhi Lahare26-May-11 8:38
Abhi Lahare26-May-11 8:38 
QuestionWM_NOTIFY to control itself Pin
includeh1024-May-11 10:22
includeh1024-May-11 10:22 
AnswerRe: WM_NOTIFY to control itself Pin
Mark Salsbery24-May-11 10:43
Mark Salsbery24-May-11 10:43 
GeneralRe: WM_NOTIFY to control itself Pin
includeh1024-May-11 11:39
includeh1024-May-11 11:39 
AnswerRe: WM_NOTIFY to control itself Pin
Code-o-mat24-May-11 11:41
Code-o-mat24-May-11 11:41 
GeneralRe: WM_NOTIFY to control itself Pin
includeh1024-May-11 12:33
includeh1024-May-11 12:33 
Questioninit message for control's subclass of a dialog Pin
includeh1024-May-11 10:16
includeh1024-May-11 10:16 
AnswerRe: init message for control's subclass of a dialog Pin
Mark Salsbery24-May-11 10:48
Mark Salsbery24-May-11 10:48 
Questioncannot output exe because computer lost boost_regex-vc90-mt-gd-1_46_1.dll [modified][solved] Pin
yu-jian24-May-11 6:57
yu-jian24-May-11 6:57 
AnswerRe: cannot output exe because computer lost boost_regex-vc90-mt-gd-1_46_1.dll Pin
Albert Holguin24-May-11 8:02
professionalAlbert Holguin24-May-11 8:02 
GeneralRe: cannot output exe because computer lost boost_regex-vc90-mt-gd-1_46_1.dll Pin
yu-jian24-May-11 15:22
yu-jian24-May-11 15:22 
GeneralRe: cannot output exe because computer lost boost_regex-vc90-mt-gd-1_46_1.dll Pin
Albert Holguin24-May-11 17:49
professionalAlbert Holguin24-May-11 17:49 

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.