Click here to Skip to main content
15,890,557 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: An multithread question. Pin
Zac Howland28-Aug-06 4:38
Zac Howland28-Aug-06 4:38 
QuestionOpen Office SDK [modified] Pin
Kamen28-Aug-06 1:07
Kamen28-Aug-06 1:07 
AnswerRe: Open Office SDK Pin
Dave Calkins28-Aug-06 7:59
Dave Calkins28-Aug-06 7:59 
QuestionDifferece between static library and shared DLL [modified] Pin
Anu_Bala28-Aug-06 0:10
Anu_Bala28-Aug-06 0:10 
AnswerRe: Differece between static library and shared DLL Pin
Emilio Garavaglia28-Aug-06 1:36
Emilio Garavaglia28-Aug-06 1:36 
AnswerRe: Differece between static library and shared DLL Pin
Hamid_RT28-Aug-06 7:55
Hamid_RT28-Aug-06 7:55 
QuestionSyncronization question Pin
Kiran Pinjala27-Aug-06 23:59
Kiran Pinjala27-Aug-06 23:59 
AnswerRe: Syncronization question Pin
kakan28-Aug-06 0:51
professionalkakan28-Aug-06 0:51 
There is a number of ways to achieve this.

The methods I came to think about is (amongst others):
1.
Open/create the file for exclusive access (from each dll), and let the other dll wait/retry until it can open/create the file for exclusive access.

2.
Use a named semaphore (see OpenSemaphore() and CreateSemaphore()) to flag the file is busy.

3.
Use file locking

4.
Use a CriticalSection

5.
Use a Mutex (Owned by the main code, passed as a pointer?)

6.
e.t.c



Alcohol. The cause of, and the solution to, all of life's problems - Homer Simpson

QuestionHow to prevent drag and drop Pin
huynhnb27-Aug-06 23:22
huynhnb27-Aug-06 23:22 
QuestionSearching in SDK Pin
shadrach_india27-Aug-06 23:13
shadrach_india27-Aug-06 23:13 
AnswerRe: Searching in SDK Pin
Prakash Nadar27-Aug-06 23:22
Prakash Nadar27-Aug-06 23:22 
GeneralRe: Searching in SDK Pin
ThatsAlok28-Aug-06 0:50
ThatsAlok28-Aug-06 0:50 
AnswerRe: Searching in SDK Pin
toxcct27-Aug-06 23:25
toxcct27-Aug-06 23:25 
GeneralRe: Searching in SDK Pin
shadrach_india27-Aug-06 23:33
shadrach_india27-Aug-06 23:33 
GeneralRe: Searching in SDK Pin
toxcct27-Aug-06 23:39
toxcct27-Aug-06 23:39 
GeneralRe: Searching in SDK [modified] Pin
shadrach_india27-Aug-06 23:44
shadrach_india27-Aug-06 23:44 
GeneralRe: Searching in SDK [modified] Pin
toxcct27-Aug-06 23:46
toxcct27-Aug-06 23:46 
GeneralRe: Searching in SDK Pin
shadrach_india28-Aug-06 0:12
shadrach_india28-Aug-06 0:12 
GeneralRe: Searching in SDK Pin
shadrach_india28-Aug-06 0:42
shadrach_india28-Aug-06 0:42 
GeneralRe: Searching in SDK Pin
David Crow28-Aug-06 3:55
David Crow28-Aug-06 3:55 
QuestionMS VS 2005 C++ Issue Pin
Programm3r27-Aug-06 22:32
Programm3r27-Aug-06 22:32 
AnswerRe: MS VS 2005 C++ Issue Pin
Dave Calkins28-Aug-06 5:10
Dave Calkins28-Aug-06 5:10 
QuestionRe: MS VS 2005 C++ Issue Pin
Hamid_RT28-Aug-06 8:10
Hamid_RT28-Aug-06 8:10 
QuestionCSortListCtrl Line Color Pin
mikobi27-Aug-06 21:31
mikobi27-Aug-06 21:31 
AnswerRe: CSortListCtrl Line Color Pin
_AnsHUMAN_ 27-Aug-06 22:00
_AnsHUMAN_ 27-Aug-06 22:00 

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.