Click here to Skip to main content
15,907,905 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Killing processes using TerminateProcess() Pin
Erik Juhl15-Apr-03 9:16
Erik Juhl15-Apr-03 9:16 
GeneralRe: Killing processes using TerminateProcess() Pin
Jonathan.Oakley15-Apr-03 9:48
Jonathan.Oakley15-Apr-03 9:48 
GeneralFiles Pin
d.f15-Apr-03 7:53
d.f15-Apr-03 7:53 
GeneralRe: Files Pin
Joaquín M López Muñoz15-Apr-03 8:09
Joaquín M López Muñoz15-Apr-03 8:09 
GeneralMenu in Dialog Pin
bobthemonkey15-Apr-03 7:48
bobthemonkey15-Apr-03 7:48 
GeneralRe: Menu in Dialog Pin
Joaquín M López Muñoz15-Apr-03 8:05
Joaquín M López Muñoz15-Apr-03 8:05 
GeneralRe: Menu in Dialog Pin
bobthemonkey15-Apr-03 8:16
bobthemonkey15-Apr-03 8:16 
GeneralMsgWaitForMultipleObjects Pin
Dave_15-Apr-03 7:07
Dave_15-Apr-03 7:07 
Does anyone know if there are issues using this function within a dll call? I am trying to use it to wait for a global mutex handle, and it seems to never recognize that the mutex is available. If I use WaitForSingleObject(), it works fine. There are reasons for wanting to use the MsgWaitForMultipleObjects() so I cannot just shrug it off, and go with WaitForSingleObject().

Any ideas?

HANDLE ghAcess;

From within some function:
<br />
if (ghAccess == NULL)<br />
  ghAccess = OpenMutex(MUTEX_ALL_ACCESS,FALSE,"AccessMutex");<br />
<br />
//...This is actually within a while loop waiting about 30 seconds<br />
//this always seems to timeout:<br />
DWORD dwWaitResult = MsgWaitForMultipleObjects(1,&ghAccess,TRUE,100,QS_ALLINPUT);<br />
      switch (dwWaitResult) {<br />
        case WAIT_OBJECT_0:<br />
        case WAIT_ABANDONED_0:<br />
          return(ghAccess);<br />
        default:<br />
          break;<br />
      }<br />

GeneralRe: MsgWaitForMultipleObjects Pin
Joaquín M López Muñoz15-Apr-03 7:46
Joaquín M López Muñoz15-Apr-03 7:46 
GeneralRe: MsgWaitForMultipleObjects Pin
Dave_15-Apr-03 8:23
Dave_15-Apr-03 8:23 
QuestionSetting capacity for STL vector? Pin
Anonymous15-Apr-03 6:57
Anonymous15-Apr-03 6:57 
AnswerRe: Setting capacity for STL vector? Pin
Joaquín M López Muñoz15-Apr-03 7:42
Joaquín M López Muñoz15-Apr-03 7:42 
QuestionSetting capacity for STL vector? Pin
Anonymous15-Apr-03 6:55
Anonymous15-Apr-03 6:55 
AnswerRe: Setting capacity for STL vector? Pin
Rickard Andersson2015-Apr-03 7:03
Rickard Andersson2015-Apr-03 7:03 
GeneralRe: Setting capacity for STL vector? Pin
Anonymous15-Apr-03 7:12
Anonymous15-Apr-03 7:12 
GeneralRe: Setting capacity for STL vector? Pin
Gary Kirkham15-Apr-03 7:35
Gary Kirkham15-Apr-03 7:35 
GeneralSTL in DLL's Pin
Jawache15-Apr-03 6:43
Jawache15-Apr-03 6:43 
GeneralRe: STL in DLL's Pin
valikac15-Apr-03 6:47
valikac15-Apr-03 6:47 
GeneralRe: STL in DLL's Pin
Jim Crafton15-Apr-03 7:46
Jim Crafton15-Apr-03 7:46 
GeneralCD-ROM Status Pin
pmask15-Apr-03 6:36
pmask15-Apr-03 6:36 
GeneralDLL builds fine in VS 6 but gets a link error in VS.NET Pin
Cathy15-Apr-03 6:28
Cathy15-Apr-03 6:28 
GeneralRe: DLL builds fine in VS 6 but gets a link error in VS.NET Pin
Rick York15-Apr-03 6:45
mveRick York15-Apr-03 6:45 
GeneralRe: DLL builds fine in VS 6 but gets a link error in VS.NET Pin
Cathy21-Apr-03 7:59
Cathy21-Apr-03 7:59 
GeneralRe: DLL builds fine in VS 6 but gets a link error in VS.NET Pin
Jim Crafton15-Apr-03 7:51
Jim Crafton15-Apr-03 7:51 
GeneralRe: DLL builds fine in VS 6 but gets a link error in VS.NET Pin
Cathy21-Apr-03 8:01
Cathy21-Apr-03 8:01 

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.