Click here to Skip to main content
15,900,589 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Multi-threading/multi-instances with same thread function Pin
22-Apr-02 17:10
suss22-Apr-02 17:10 
GeneralRe: Multi-threading/multi-instances with same thread function Pin
Albert Pascual22-Apr-02 17:20
sitebuilderAlbert Pascual22-Apr-02 17:20 
GeneralRe: Multi-threading/multi-instances with same thread function Pin
22-Apr-02 17:28
suss22-Apr-02 17:28 
GeneralRe: Multi-threading/multi-instances with same thread function Pin
Albert Pascual23-Apr-02 6:26
sitebuilderAlbert Pascual23-Apr-02 6:26 
GeneralRe: Multi-threading/multi-instances with same thread function Pin
Tim Smith23-Apr-02 2:24
Tim Smith23-Apr-02 2:24 
GeneralRe: Multi-threading/multi-instances with same thread function Pin
Tim Smith23-Apr-02 2:25
Tim Smith23-Apr-02 2:25 
GeneralRe: Multi-threading/multi-instances with same thread function Pin
23-Apr-02 16:26
suss23-Apr-02 16:26 
GeneralRe: Multi-threading/multi-instances with same thread function -- I got it !! Pin
23-Apr-02 18:46
suss23-Apr-02 18:46 
I got it already ! Thanks for everybody's reply.

JOBINST pJobObj = (JOBINST) lpParam;

pJobObj->hMailEvent = CreateEvent( 0, FALSE, FALSE, "Mail Thread Event" );
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Wrong for the event string - "Mail Thread Event" !!

Every event should be unique !
So, the correct one is something like this:

char strMailEvent[ 64 ];

wsprintf( strMailEvent, "MyMailEvent %x",( DWORD )pJobObj );
pJobObj->hMailEvent = CreateEvent( 0, FALSE, FALSE, strMailEvent );

because every pJobObj is unique (allocated from heap), I use this as key for every event.


GeneralUsing MSDN.... Pin
SilverShalkin22-Apr-02 16:41
SilverShalkin22-Apr-02 16:41 
GeneralRe: Using MSDN.... Pin
Paul M Watt22-Apr-02 18:55
mentorPaul M Watt22-Apr-02 18:55 
GeneralRe: Using MSDN.... Pin
Mike Nordell22-Apr-02 19:22
Mike Nordell22-Apr-02 19:22 
GeneralMSDN Pin
SilverShalkin23-Apr-02 3:01
SilverShalkin23-Apr-02 3:01 
GeneralRe: MSDN Pin
Mike Nordell23-Apr-02 10:19
Mike Nordell23-Apr-02 10:19 
QuestionHow to pass handle to stl container? Pin
Todd Smith22-Apr-02 15:37
Todd Smith22-Apr-02 15:37 
AnswerRe: How to pass handle to stl container? Pin
Paul M Watt22-Apr-02 15:52
mentorPaul M Watt22-Apr-02 15:52 
GeneralRe: How to pass handle to stl container? Pin
Christian Graus22-Apr-02 16:06
protectorChristian Graus22-Apr-02 16:06 
GeneralSpeeding Up Display Time in CEditView :: MFC Pin
valikac22-Apr-02 15:27
valikac22-Apr-02 15:27 
GeneralRe: Speeding Up Display Time in CEditView :: MFC Pin
Paul M Watt22-Apr-02 16:02
mentorPaul M Watt22-Apr-02 16:02 
GeneralRe: Speeding Up Display Time in CEditView :: MFC Pin
valikac22-Apr-02 16:36
valikac22-Apr-02 16:36 
GeneralRe: Speeding Up Display Time in CEditView :: MFC Pin
Paul M Watt22-Apr-02 18:47
mentorPaul M Watt22-Apr-02 18:47 
GeneralRe: Speeding Up Display Time in CEditView :: MFC Pin
valikac22-Apr-02 19:13
valikac22-Apr-02 19:13 
GeneralCFormView resizing Pin
22-Apr-02 13:58
suss22-Apr-02 13:58 
GeneralRe: CFormView resizing Pin
Roger Allen22-Apr-02 21:51
Roger Allen22-Apr-02 21:51 
GeneralRe: CFormView resizing Pin
ErrN023-Apr-02 1:12
ErrN023-Apr-02 1:12 
GeneralGet an HICON from a running process Pin
22-Apr-02 13:33
suss22-Apr-02 13:33 

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.