Click here to Skip to main content
15,914,488 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to make flicker free dialog interface? Pin
9-Jul-01 3:57
suss9-Jul-01 3:57 
AnswerRe: How to make flicker free dialog interface? Pin
Christian Graus8-Jul-01 2:22
protectorChristian Graus8-Jul-01 2:22 
AnswerRe: How to make flicker free dialog interface? Pin
Tommy H D Svensson18-Sep-01 5:42
Tommy H D Svensson18-Sep-01 5:42 
GeneralCString Find Pin
7-Jul-01 12:38
suss7-Jul-01 12:38 
GeneralRe: CString Find Pin
Michael Dunn7-Jul-01 19:46
sitebuilderMichael Dunn7-Jul-01 19:46 
GeneralRe: CString Find Pin
8-Jul-01 5:29
suss8-Jul-01 5:29 
GeneralSingle application instance Pin
Joe Moldovan7-Jul-01 12:35
Joe Moldovan7-Jul-01 12:35 
GeneralRe: Single application instance Pin
Tim Deveaux7-Jul-01 12:55
Tim Deveaux7-Jul-01 12:55 
Re Q1:

In 16 bit windows, which was an 'all one process' affair, you could check the hInstance param passed to the entry fn to do this.

Nowadays, the de jure standard is to use shared memory - a named memory mapped file (see CreateFileMapping and MapViewOfFile) that the app creates on startup - if it already exists, exit, perhaps passing control to the first instance.

There was an excellent intro to this stuff in Jeff Prosise's Wicked Code MSJ November 1998.

A background thread approach sounds interesting though.
GeneralRe: Single application instance Pin
l a u r e n7-Jul-01 23:00
l a u r e n7-Jul-01 23:00 
GeneralRe: Single application instance Pin
Stan Shannon8-Jul-01 1:07
Stan Shannon8-Jul-01 1:07 
GeneralRe: Single application instance Pin
Vu Nguyen7-Dec-01 14:43
Vu Nguyen7-Dec-01 14:43 
GeneralRe: Single application instance Pin
Vu Nguyen10-Dec-01 10:29
Vu Nguyen10-Dec-01 10:29 
GeneralRe: Single application instance Pin
Joe Moldovan8-Jul-01 10:15
Joe Moldovan8-Jul-01 10:15 
GeneralRe: Single application instance Pin
8-Jul-01 13:21
suss8-Jul-01 13:21 
GeneralRe: Single application instance Pin
8-Jul-01 13:25
suss8-Jul-01 13:25 
GeneralRe: Single application instance Pin
9-Jul-01 3:56
suss9-Jul-01 3:56 
GeneralRe: Single application instance Pin
Bret Faller9-Jul-01 11:27
Bret Faller9-Jul-01 11:27 
QuestionHow to create a menu bar in ATL control Pin
Oliver Daniel7-Jul-01 8:59
Oliver Daniel7-Jul-01 8:59 
AnswerRe: How to create a menu bar in ATL control Pin
7-Jul-01 10:10
suss7-Jul-01 10:10 
GeneralRe: How to create a menu bar in ATL control Pin
Oliver Daniel8-Jul-01 3:01
Oliver Daniel8-Jul-01 3:01 
Generalfile opening Pin
7-Jul-01 7:15
suss7-Jul-01 7:15 
GeneralRe: file opening Pin
7-Jul-01 9:33
suss7-Jul-01 9:33 
GeneralRe: file opening Pin
7-Jul-01 21:32
suss7-Jul-01 21:32 
GeneralRe: file opening Pin
Michael Dunn7-Jul-01 19:54
sitebuilderMichael Dunn7-Jul-01 19:54 
GeneralRe: file opening Pin
8-Jul-01 10:35
suss8-Jul-01 10:35 

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.