Click here to Skip to main content
15,914,071 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generaldetecting server socket reset Pin
Anonymous30-Oct-02 16:53
Anonymous30-Oct-02 16:53 
GeneralRe: detecting server socket reset Pin
Member 1006688325-Jun-14 2:53
Member 1006688325-Jun-14 2:53 
GeneralDisable Item in ListBox Pin
:_Rocket_:30-Oct-02 16:45
:_Rocket_:30-Oct-02 16:45 
GenerallParam vs wParam Pin
stevenson30-Oct-02 16:36
stevenson30-Oct-02 16:36 
GeneralRe: lParam vs wParam Pin
Anatari30-Oct-02 17:05
Anatari30-Oct-02 17:05 
GeneralRe: lParam vs wParam Pin
Paul M Watt30-Oct-02 18:14
mentorPaul M Watt30-Oct-02 18:14 
GeneralRe: lParam vs wParam Pin
devvvy30-Oct-02 18:24
devvvy30-Oct-02 18:24 
GeneralMulti-threading Pin
Gary Kirkham30-Oct-02 16:31
Gary Kirkham30-Oct-02 16:31 
I am writing a MFC MDI application. At a particular point I am displaying a Dialog in a separate thread that contains a progress meter. I am using the AfxBeginThread function supplying the CRuntimeClass of the progress meter dialog. Then when the progress meter is no longer needed I call the dialog's EndDialog function and then call WaitForSingleObject to wait until the thread is terminated.

All well and good...It works just fine under Win98.

It doesn't work under Win2K Confused | :confused:

It seems that under NT in order to use WaitForSingleObject, the SYNCHRONIZE permission has to be set...which is also accomplished by setting PROCESS_ALL_ACCESS permissions.

Finally, my question. How do you set the SYNCHRONIZE or PROCESS_ALL_ACCESS permissions for the process in a MFC MDI app?

Gary Kirkham

A working Program is one that has only unobserved bugs
GeneralRe: Multi-threading Pin
Joaquín M López Muñoz30-Oct-02 20:07
Joaquín M López Muñoz30-Oct-02 20:07 
GeneralRe: Multi-threading Pin
Gary Kirkham1-Nov-02 3:35
Gary Kirkham1-Nov-02 3:35 
GeneralIE Pin
candan30-Oct-02 16:11
professionalcandan30-Oct-02 16:11 
GeneralRe: IE Pin
Stephane Rodriguez.30-Oct-02 19:33
Stephane Rodriguez.30-Oct-02 19:33 
GeneralRe: IE Pin
candan30-Oct-02 20:14
professionalcandan30-Oct-02 20:14 
GeneralRe: IE Pin
Stephane Rodriguez.30-Oct-02 20:20
Stephane Rodriguez.30-Oct-02 20:20 
GeneralRe: IE Pin
candan30-Oct-02 21:43
professionalcandan30-Oct-02 21:43 
GeneralRe: IE Pin
Stephane Rodriguez.30-Oct-02 21:54
Stephane Rodriguez.30-Oct-02 21:54 
GeneralCListCtrl / CListBox and Icons Pin
JoeSox30-Oct-02 15:39
JoeSox30-Oct-02 15:39 
GeneralRe: CListCtrl / CListBox and Icons Pin
dabs31-Oct-02 4:24
dabs31-Oct-02 4:24 
GeneralRe: CListCtrl / CListBox and Icons Pin
JoeSox31-Oct-02 4:52
JoeSox31-Oct-02 4:52 
GeneralOverlapped I/O and Completion Port :: Winsock Pin
valikac30-Oct-02 12:18
valikac30-Oct-02 12:18 
GeneralRe: Overlapped I/O and Completion Port :: Winsock Pin
User 988530-Oct-02 12:46
User 988530-Oct-02 12:46 
GeneralRe: Overlapped I/O and Completion Port :: Winsock Pin
valikac30-Oct-02 14:08
valikac30-Oct-02 14:08 
GeneralRe: Overlapped I/O and Completion Port :: Winsock Pin
Gerald Schwab30-Oct-02 12:49
Gerald Schwab30-Oct-02 12:49 
GeneralGDI Objects question. Pin
Anonymous30-Oct-02 11:28
Anonymous30-Oct-02 11:28 
GeneralRe: GDI Objects question. Pin
Chris Richardson30-Oct-02 11:46
Chris Richardson30-Oct-02 11: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.