Click here to Skip to main content
15,887,083 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Cursor Pos and Font size Pin
susanne116-Jul-09 3:47
susanne116-Jul-09 3:47 
QuestionRe: Cursor Pos and Font size Pin
David Crow16-Jul-09 4:01
David Crow16-Jul-09 4:01 
AnswerRe: Cursor Pos and Font size Pin
susanne116-Jul-09 4:43
susanne116-Jul-09 4:43 
GeneralRe: Cursor Pos and Font size Pin
«_Superman_»16-Jul-09 4:49
professional«_Superman_»16-Jul-09 4:49 
GeneralRe: Cursor Pos and Font size Pin
susanne116-Jul-09 4:51
susanne116-Jul-09 4:51 
GeneralRe: Cursor Pos and Font size Pin
David Crow16-Jul-09 5:00
David Crow16-Jul-09 5:00 
QuestionOperating System Mutex Pin
Tristan Rhodes16-Jul-09 2:01
Tristan Rhodes16-Jul-09 2:01 
AnswerRe: Operating System Mutex Pin
«_Superman_»16-Jul-09 2:17
professional«_Superman_»16-Jul-09 2:17 
Please use the documentation of CreateMutex[^] as a reference.

The mutex will be automatically released when the process terminates.
Here is a snippet from the documentation -
The system closes the handle automatically when the process terminates. The mutex object is destroyed when its last handle has been closed.

The documentation makes some recommendations to check for application instances.
Here is a snippet that explains this -
If you are using a named mutex to limit your application to a single instance, a malicious user can create this mutex before you do and prevent your application from starting. To prevent this situation, create a randomly named mutex and store the name so that it can only be obtained by an authorized user. Alternatively, you can use a file for this purpose. To limit your application to one instance per user, create a locked file in the user's profile directory.

«_Superman
I love work. It gives me something to do between weekends.

GeneralRe: Operating System Mutex Pin
Tristan Rhodes16-Jul-09 5:05
Tristan Rhodes16-Jul-09 5:05 
AnswerRe: Operating System Mutex Pin
Rajesh R Subramanian16-Jul-09 3:02
professionalRajesh R Subramanian16-Jul-09 3:02 
Questioncall a dialog box in a dll Pin
UserNameless16-Jul-09 1:20
UserNameless16-Jul-09 1:20 
AnswerRe: call a dialog box in a dll Pin
_AnsHUMAN_ 16-Jul-09 1:30
_AnsHUMAN_ 16-Jul-09 1:30 
GeneralRe: call a dialog box in a dll [modified] Pin
UserNameless16-Jul-09 1:33
UserNameless16-Jul-09 1:33 
QuestionDifference Debugging F5 and Ctrl F5 Pin
prithaa16-Jul-09 1:12
prithaa16-Jul-09 1:12 
AnswerRe: Difference Debugging F5 and Ctrl F5 Pin
Maximilien16-Jul-09 1:18
Maximilien16-Jul-09 1:18 
AnswerRe: Difference Debugging F5 and Ctrl F5 Pin
carter200016-Jul-09 1:21
carter200016-Jul-09 1:21 
AnswerRe: Difference Debugging F5 and Ctrl F5 Pin
krmed16-Jul-09 7:18
krmed16-Jul-09 7:18 
GeneralRe: Difference Debugging F5 and Ctrl F5 Pin
prithaa16-Jul-09 18:05
prithaa16-Jul-09 18:05 
QuestionNeed guidance and proposal of design and implementation for an e-voting (electronic voting) system Pin
bahareh65515-Jul-09 23:14
bahareh65515-Jul-09 23:14 
AnswerRe: Need guidance and proposal of design and implementation for an e-voting (electronic voting) system Pin
Stuart Dootson16-Jul-09 0:50
professionalStuart Dootson16-Jul-09 0:50 
QuestionDialog font size problem Pin
DevelopmentNoob15-Jul-09 23:05
DevelopmentNoob15-Jul-09 23:05 
AnswerRe: Dialog font size problem Pin
Michael Schubert15-Jul-09 23:27
Michael Schubert15-Jul-09 23:27 
GeneralRe: Dialog font size problem Pin
DevelopmentNoob16-Jul-09 21:24
DevelopmentNoob16-Jul-09 21:24 
QuestionCreateObject with specific constructor Pin
sangbl15-Jul-09 22:42
sangbl15-Jul-09 22:42 
AnswerRe: CreateObject with specific constructor Pin
Stuart Dootson16-Jul-09 0:46
professionalStuart Dootson16-Jul-09 0:46 

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.