Click here to Skip to main content
15,894,405 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: call functions of a win32 dll from a ASP.Net Pin
«_Superman_»16-Jul-09 16:44
professional«_Superman_»16-Jul-09 16:44 
QuestionCreating outlook express style frame headers/banners Pin
Sternocera16-Jul-09 5:56
Sternocera16-Jul-09 5:56 
QuestionVC++ library LEDA Pin
Member 311244716-Jul-09 5:21
Member 311244716-Jul-09 5:21 
QuestionCalling functions in a win32 dll from a vb.net application. Pin
ashwath197916-Jul-09 4:51
ashwath197916-Jul-09 4:51 
AnswerRe: Calling functions in a win32 dll from a vb.net application. Pin
CPallini16-Jul-09 5:20
mveCPallini16-Jul-09 5:20 
AnswerRe: Calling functions in a win32 dll from a vb.net application. Pin
Yajnesh Narayan Behera16-Jul-09 5:43
Yajnesh Narayan Behera16-Jul-09 5:43 
GeneralRe: Calling functions in a win32 dll from a vb.net application. Pin
ashwath197916-Jul-09 6:40
ashwath197916-Jul-09 6:40 
QuestionAlgorithm for 8bit checksum Pin
resolvequestion16-Jul-09 3:17
resolvequestion16-Jul-09 3:17 
QuestionRe: Algorithm for 8bit checksum Pin
David Crow16-Jul-09 3:27
David Crow16-Jul-09 3:27 
QuestionRe: Algorithm for 8bit checksum Pin
CPallini16-Jul-09 5:33
mveCPallini16-Jul-09 5:33 
AnswerRe: Algorithm for 8bit checksum Pin
Stuart Dootson16-Jul-09 9:33
professionalStuart Dootson16-Jul-09 9:33 
QuestionCursor Pos and Font size Pin
susanne116-Jul-09 2:52
susanne116-Jul-09 2:52 
QuestionRe: Cursor Pos and Font size Pin
David Crow16-Jul-09 2:55
David Crow16-Jul-09 2:55 
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 

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.