Click here to Skip to main content
16,011,358 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Virtual Keys :: MFC Pin
Michael Dunn17-Mar-02 12:55
sitebuilderMichael Dunn17-Mar-02 12:55 
GeneralRe: Virtual Keys :: MFC Pin
valikac17-Mar-02 13:21
valikac17-Mar-02 13:21 
GeneralRe: Virtual Keys :: MFC Pin
Michael Dunn17-Mar-02 13:28
sitebuilderMichael Dunn17-Mar-02 13:28 
GeneralBitmaps Pin
17-Mar-02 6:15
suss17-Mar-02 6:15 
GeneralRe: Bitmaps Pin
Paul M Watt17-Mar-02 7:36
mentorPaul M Watt17-Mar-02 7:36 
GeneralRe: Bitmaps Pin
Paul M Watt18-Mar-02 5:29
mentorPaul M Watt18-Mar-02 5:29 
QuestionRestrict Multiple Instance of an Exe? Pin
17-Mar-02 5:04
suss17-Mar-02 5:04 
AnswerRe: Restrict Multiple Instance of an Exe? Pin
Tim Smith17-Mar-02 6:01
Tim Smith17-Mar-02 6:01 
One way is to use a named mutex.

HANDLE hMultiMutex = CreateMutex (NULL, FALSE, "DSSIOmniServerMutex");
if (hMultiMutex == NULL) { /* Check for error. */ }
DWORD dwWaitResult = WaitForSingleObject (hMultiMutex, 0L);
bool fDuplicate = dwWaitResult == WAIT_TIMEOUT;


It isn't 100% fool proof, but it should work for GUIs.

Tim Smith

I know what you're thinking punk, you're thinking did he spell check this document? Well, to tell you the truth I kinda forgot myself in all this excitement. But being this here's CodeProject, the most powerful forums in the world and would blow your head clean off, you've got to ask yourself one question, Do I feel lucky? Well do ya punk?
GeneralMy Copy Constructor bug problem Pin
John Cruz17-Mar-02 3:37
John Cruz17-Mar-02 3:37 
GeneralRe: My Copy Constructor bug problem Pin
Paul M Watt17-Mar-02 7:39
mentorPaul M Watt17-Mar-02 7:39 
GeneralRe: My Copy Constructor bug problem Pin
John Cruz17-Mar-02 10:56
John Cruz17-Mar-02 10:56 
GeneralRe: My Copy Constructor bug problem Pin
Alexandru Savescu17-Mar-02 11:51
Alexandru Savescu17-Mar-02 11:51 
GeneralRe: My Copy Constructor bug problem Pin
John Cruz17-Mar-02 12:19
John Cruz17-Mar-02 12:19 
GeneralRe: My Copy Constructor bug problem Pin
John Cruz17-Mar-02 12:27
John Cruz17-Mar-02 12:27 
GeneralRe: My Copy Constructor bug problem Pin
Andrew Peace17-Mar-02 12:41
Andrew Peace17-Mar-02 12:41 
GeneralRe: My Copy Constructor bug problem Pin
John Cruz17-Mar-02 12:56
John Cruz17-Mar-02 12:56 
GeneralRe: My Copy Constructor bug problem Pin
Tim Smith17-Mar-02 13:14
Tim Smith17-Mar-02 13:14 
Generaldisable client-container menu.... Pin
Atila17-Mar-02 2:55
Atila17-Mar-02 2:55 
GeneralOnChar() problem ! Pin
Hadi Rezaee16-Mar-02 23:47
Hadi Rezaee16-Mar-02 23:47 
GeneralRe: OnChar() problem ! Pin
Christian Graus17-Mar-02 0:00
protectorChristian Graus17-Mar-02 0:00 
GeneralRe: OnChar() problem ! Pin
Hadi Rezaee17-Mar-02 3:10
Hadi Rezaee17-Mar-02 3:10 
GeneralHelp finding a Copy Constructor bug... Pin
John Cruz16-Mar-02 21:44
John Cruz16-Mar-02 21:44 
GeneralRe: Help finding a Copy Constructor bug... Pin
Atul Dharne17-Mar-02 18:33
Atul Dharne17-Mar-02 18:33 
QuestionHow to run FTP shell from a Win32 or C or MFC Application Pin
rodica16-Mar-02 20:51
rodica16-Mar-02 20:51 
AnswerRe: How to run FTP shell from a Win32 or C or MFC Application Pin
Philip Patrick17-Mar-02 0:43
professionalPhilip Patrick17-Mar-02 0:43 

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.