Click here to Skip to main content
15,889,595 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: Stop list view items from being sorted Pin
Perspx5-Aug-07 2:15
Perspx5-Aug-07 2:15 
AnswerRe: Stop list view items from being sorted Pin
Hamid_RT5-Aug-07 3:41
Hamid_RT5-Aug-07 3:41 
GeneralRe: Stop list view items from being sorted Pin
Perspx5-Aug-07 3:29
Perspx5-Aug-07 3:29 
GeneralRe: Stop list view items from being sorted Pin
Hamid_RT5-Aug-07 3:53
Hamid_RT5-Aug-07 3:53 
GeneralRe: Stop list view items from being sorted Pin
Perspx5-Aug-07 4:46
Perspx5-Aug-07 4:46 
Questionmutex problem Pin
VC_RYK4-Aug-07 5:56
VC_RYK4-Aug-07 5:56 
AnswerRe: mutex problem Pin
Mark Salsbery4-Aug-07 6:45
Mark Salsbery4-Aug-07 6:45 
GeneralRe: mutex problem Pin
VC_RYK4-Aug-07 7:12
VC_RYK4-Aug-07 7:12 
Hi This is the code what i have used for creating mutex and opening mutex

SECURITY_ATTRIBUTES SecAtt;
SecAtt.nLength = sizeof(SECURITY_ATTRIBUTES);
SecAtt.bInheritHandle = true;
SecAtt.lpSecurityDescriptor = NULL;


m_hMutex = CreateMutex(&SecAtt ,FALSE,_T("Global\\DeviceFilterWriteNotification"));


in a Function the same application i have written some pice of code

::WaitForSingleObject(m_hMutex ,INFINITE);

// some percess is executing

if(ReleaseMutex(m_hMutex)) //allows ervice to access status file
WriteLog("Write Mutex Reset Successfully");
else
WriteLog("Failed to Release write Mutex");




in other application which is a service i am opening the Mutex by this way

HANDLE hWrite= OpenMutex(NULL,FALSE,_T("Global\\DeviceFilterWriteNotification"));

ReleaseMutex(hWrite);


Thanks in advance
RYK


GeneralRe: mutex problem Pin
Mark Salsbery4-Aug-07 8:32
Mark Salsbery4-Aug-07 8:32 
GeneralRe: mutex problem Pin
JudyL_MD6-Aug-07 2:31
JudyL_MD6-Aug-07 2:31 
QuestionSubclassing and hooking the Microsoft Office 2000/2003/2007 File Open / Save Dialog boxes using Win32 C code Pin
JuggernautMsn4-Aug-07 2:23
JuggernautMsn4-Aug-07 2:23 
AnswerRe: Subclassing and hooking the Microsoft Office 2000/2003/2007 File Open / Save Dialog boxes using Win32 C code Pin
Mark Salsbery4-Aug-07 6:48
Mark Salsbery4-Aug-07 6:48 
AnswerRe: Subclassing and hooking the Microsoft Office 2000/2003/2007 File Open / Save Dialog boxes using Win32 C code Pin
Force Code4-Aug-07 9:28
Force Code4-Aug-07 9:28 
GeneralRe: Subclassing and hooking the Microsoft Office 2000/2003/2007 File Open / Save Dialog boxes using Win32 C code Pin
Force Code4-Aug-07 13:41
Force Code4-Aug-07 13:41 
GeneralRe: Subclassing and hooking the Microsoft Office 2000/2003/2007 File Open / Save Dialog boxes using Win32 C code Pin
JuggernautMsn6-Aug-07 10:07
JuggernautMsn6-Aug-07 10:07 
QuestionPC wakeup from hibernation using SetWaitableTimer() Pin
Still learning how to code4-Aug-07 1:36
Still learning how to code4-Aug-07 1:36 
AnswerRe: PC wakeup from hibernation using SetWaitableTimer() Pin
Still learning how to code5-Aug-07 2:17
Still learning how to code5-Aug-07 2:17 
QuestionProblem with OnDrawClipboard Pin
dSolariuM4-Aug-07 1:12
dSolariuM4-Aug-07 1:12 
QuestionTapi reconnection Pin
mehrdadov4-Aug-07 0:06
mehrdadov4-Aug-07 0:06 
QuestionVS 2003 Tab Controls Pin
Code_Ray3-Aug-07 13:08
Code_Ray3-Aug-07 13:08 
AnswerRe: VS 2003 Tab Controls Pin
Mark Salsbery3-Aug-07 13:37
Mark Salsbery3-Aug-07 13:37 
AnswerRe: VS 2003 Tab Controls Pin
Michael Dunn3-Aug-07 14:48
sitebuilderMichael Dunn3-Aug-07 14:48 
AnswerRe: VS 2003 Tab Controls Pin
bob169723-Aug-07 16:15
bob169723-Aug-07 16:15 
QuestionPrinting in MFC [modified] Pin
hxhl953-Aug-07 12:30
hxhl953-Aug-07 12:30 
AnswerRe: Printing in MFC Pin
bob169723-Aug-07 16:02
bob169723-Aug-07 16:02 

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.