Click here to Skip to main content
16,006,375 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CButton/CWnd properties Pin
12-Oct-01 8:10
suss12-Oct-01 8:10 
GeneralRe: CButton/CWnd properties Pin
Tomasz Sowinski13-Oct-01 1:15
Tomasz Sowinski13-Oct-01 1:15 
GeneralRe: CButton/CWnd properties Pin
Andrew Peace12-Oct-01 8:22
Andrew Peace12-Oct-01 8:22 
GeneralRe: CButton/CWnd properties Pin
12-Oct-01 9:22
suss12-Oct-01 9:22 
GeneralDAO with Access 2000 DB Pin
Chris Klecker12-Oct-01 3:53
Chris Klecker12-Oct-01 3:53 
GeneralRe: DAO with Access 2000 DB Pin
Tomasz Sowinski12-Oct-01 4:16
Tomasz Sowinski12-Oct-01 4:16 
QuestionIs there a way to detect if the program I'm about to launch already running? Pin
12-Oct-01 2:53
suss12-Oct-01 2:53 
AnswerRe: Is there a way to detect if the program I'm about to launch already running? Pin
rachna12-Oct-01 4:03
rachna12-Oct-01 4:03 
A small thing which you can do is as follows.At the beginning of the
program call a small function say init() which creates a mutex ,if that
mutex already exists that means you have another instance running.

BOOL init()
{
HANDLE mutex = CreateMutex(NULL, FALSE, "mutexname");
if(mutex == NULL)
return FALSE;

if (GetLastError() == ERROR_ALREADY_EXISTS)
{
MessageBox("Another instance is already running.");
return FALSE;
}

return TRUE;

}
GeneralRe: Is there a way to detect if the program I'm about to launch already running? Pin
12-Oct-01 4:08
suss12-Oct-01 4:08 
AnswerRe: Is there a way to detect if the program I'm about to launch already running? Pin
Nish Nishant12-Oct-01 22:21
sitebuilderNish Nishant12-Oct-01 22:21 
Generalabout CString Pin
Maer72712-Oct-01 2:35
Maer72712-Oct-01 2:35 
GeneralRe: about CString Pin
Michael P Butler12-Oct-01 2:42
Michael P Butler12-Oct-01 2:42 
GeneralRe: about CString Pin
Maer72713-Oct-01 1:24
Maer72713-Oct-01 1:24 
GeneralRe: about CString Pin
Jim A. Johnson12-Oct-01 2:44
Jim A. Johnson12-Oct-01 2:44 
GeneralRe: Use the string table. Pin
Masaaki Onishi12-Oct-01 4:17
Masaaki Onishi12-Oct-01 4:17 
GeneralRe: Use the string table. Pin
Maer72713-Oct-01 1:29
Maer72713-Oct-01 1:29 
QuestionHow to compile a HTML file into one file Pin
inforix11-Oct-01 23:34
inforix11-Oct-01 23:34 
AnswerRe: How to compile a HTML file into one file Pin
Paolo Messina12-Oct-01 6:18
professionalPaolo Messina12-Oct-01 6:18 
QuestionHow to handle scrollbar? Pin
11-Oct-01 23:25
suss11-Oct-01 23:25 
AnswerRe: How to handle scrollbar? Pin
Tomasz Sowinski11-Oct-01 23:53
Tomasz Sowinski11-Oct-01 23:53 
GeneralRC file compilation fails giving error RC1015 Pin
Lakshmi11-Oct-01 20:48
Lakshmi11-Oct-01 20:48 
GeneralRe: RC file compilation fails giving error RC1015 Pin
Anna-Jayne Metcalfe11-Oct-01 21:47
Anna-Jayne Metcalfe11-Oct-01 21:47 
GeneralGenerate Reports Using Crystal Reports 7 in VC Pin
Statbat11-Oct-01 20:39
Statbat11-Oct-01 20:39 
GeneralRe: Generate Reports Using Crystal Reports 7 in VC Pin
Masaaki Onishi12-Oct-01 4:26
Masaaki Onishi12-Oct-01 4:26 
GeneralRe: Generate Reports Using Crystal Reports 7 in VC Pin
Rashid Thadha12-Oct-01 6:53
Rashid Thadha12-Oct-01 6:53 

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.