Click here to Skip to main content
15,903,033 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralThank you! I have succeeded. Pin
Huabing Yan19-Dec-00 14:58
Huabing Yan19-Dec-00 14:58 
GeneralSuperGrid Pin
18-Dec-00 23:57
suss18-Dec-00 23:57 
GeneralRe: SuperGrid Pin
19-Dec-00 2:37
suss19-Dec-00 2:37 
GeneralProblem with Access file and Class Wizard Pin
Wolfram Steinke18-Dec-00 23:05
Wolfram Steinke18-Dec-00 23:05 
GeneralRe: Problem with Access file and Class Wizard Pin
Steve Driessens19-Dec-00 2:01
Steve Driessens19-Dec-00 2:01 
GeneralRe: Problem with Access file and Class Wizard Pin
19-Dec-00 2:22
suss19-Dec-00 2:22 
GeneralCreating Single instance Application Pin
18-Dec-00 17:24
suss18-Dec-00 17:24 
GeneralRe: Creating Single instance Application Pin
Kannan18-Dec-00 18:15
Kannan18-Dec-00 18:15 
Hello,

In first line of InitInstance method of the Your application class, put the following code,

APP_NAME -- is the DialogWindow Title.

if(AfxGetMainWnd( )->FindWindow(NULL, APP_NAME))
{
AfxMessageBox("Application Already running");
exit(0);
}

If any suggesstions let me know.

Thanks ,
- Kannan.A.;)
GeneralRe: Creating Single instance Application Pin
Bartosz Lizak20-Dec-00 0:06
Bartosz Lizak20-Dec-00 0:06 
Questionhow to use timers in a non MFC class? Pin
Joan M18-Dec-00 11:21
professionalJoan M18-Dec-00 11:21 
AnswerRe: how to use timers in a non MFC class? Pin
Bartosz Lizak18-Dec-00 21:54
Bartosz Lizak18-Dec-00 21:54 
GeneralRe: how to use timers in a non MFC class? Pin
Erik Funkenbusch19-Dec-00 11:21
Erik Funkenbusch19-Dec-00 11:21 
GeneralRe: how to use timers in a non MFC class? Pin
Bartosz Lizak19-Dec-00 23:51
Bartosz Lizak19-Dec-00 23:51 
GeneralWinamp Style Ticker... Pin
18-Dec-00 9:20
suss18-Dec-00 9:20 
GeneralRe: Winamp Style Ticker... Pin
Bartosz Lizak18-Dec-00 22:07
Bartosz Lizak18-Dec-00 22:07 
GeneralMessageBeep(...) for specified length of time Pin
David Wulff18-Dec-00 5:16
David Wulff18-Dec-00 5:16 
GeneralRe: MessageBeep(...) for specified length of time Pin
18-Dec-00 9:06
suss18-Dec-00 9:06 
GeneralIP of Linksys Router (Cable) Pin
Todd Hoop18-Dec-00 3:47
Todd Hoop18-Dec-00 3:47 
GeneralWrapping a MFC Wnd in ATL Control Pin
NormDroid18-Dec-00 0:42
professionalNormDroid18-Dec-00 0:42 
GeneralCListViewCtrl Pin
17-Dec-00 22:52
suss17-Dec-00 22:52 
GeneralRe: CListViewCtrl Pin
Bartosz Lizak18-Dec-00 22:13
Bartosz Lizak18-Dec-00 22:13 
QuestionQ: Sending an e-mail programatically? Pin
Bartosz Lizak17-Dec-00 21:41
Bartosz Lizak17-Dec-00 21:41 
AnswerRe: Q: Sending an e-mail programatically? Pin
John Aspras18-Dec-00 0:17
John Aspras18-Dec-00 0:17 
AnswerRe: Q: Sending an e-mail programatically? Pin
Liu18-Dec-00 3:09
Liu18-Dec-00 3:09 
AnswerRe: Q: Sending an e-mail programatically? Pin
Bartosz Lizak18-Dec-00 4:02
Bartosz Lizak18-Dec-00 4:02 

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.