Click here to Skip to main content
15,888,984 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: how to make CButton with bgcolor and a icon Pin
wb22-Jan-04 0:04
wb22-Jan-04 0:04 
GeneralFindFirstChangeNotification Pin
Rob Caldecott21-Jan-04 22:32
Rob Caldecott21-Jan-04 22:32 
GeneralRe: FindFirstChangeNotification Pin
Rob Manderson21-Jan-04 23:37
protectorRob Manderson21-Jan-04 23:37 
GeneralRe: FindFirstChangeNotification Pin
Rob Caldecott21-Jan-04 23:56
Rob Caldecott21-Jan-04 23:56 
GeneralRe: FindFirstChangeNotification Pin
Rob Manderson22-Jan-04 0:11
protectorRob Manderson22-Jan-04 0:11 
GeneralRe: FindFirstChangeNotification Pin
Rob Caldecott22-Jan-04 0:23
Rob Caldecott22-Jan-04 0:23 
GeneralRe: FindFirstChangeNotification Pin
Rob Manderson22-Jan-04 0:33
protectorRob Manderson22-Jan-04 0:33 
GeneralRe: FindFirstChangeNotification Pin
basementman22-Jan-04 12:08
basementman22-Jan-04 12:08 
Wouldn't it just be simpler to create an IOCompletionPort and have thread B wait with a

// block on the I/O completion port (wait for a request)<br />
while (GetQueuedCompletionStatus(pLightningServer->m_hIOCompletionPort,(ULONG *)&pECB,&pUnused,&pOverlapped,INFINITE))<br />
  {<br />
    if (pOverlapped == (OVERLAPPED *)0xFFFFFFFF)<br />
      break;  // this is our signal that the server is shutting down.<br />
    <br />
    // now, process the file...<br />
  }


and then thread A would simply post the file name to the IOCompletionPort when the copy is complete.

Simple, clean, and resource friendly...

 onwards and upwards... 
GeneralRe: FindFirstChangeNotification Pin
Rob Manderson22-Jan-04 12:35
protectorRob Manderson22-Jan-04 12:35 
GeneralRe: FindFirstChangeNotification Pin
basementman23-Jan-04 4:21
basementman23-Jan-04 4:21 
GeneralRe: FindFirstChangeNotification Pin
Yogurt22-Jan-04 0:01
Yogurt22-Jan-04 0:01 
Questiontoolbar on CDialogBar??? Pin
Balkrishna Talele21-Jan-04 22:23
Balkrishna Talele21-Jan-04 22:23 
GeneralPlease help Pin
30jenny21-Jan-04 22:21
30jenny21-Jan-04 22:21 
GeneralRe: Please help Pin
Mukkie25-Jan-04 8:20
Mukkie25-Jan-04 8:20 
Generalopening a doc in IE Pin
Abhi Lahare21-Jan-04 22:19
Abhi Lahare21-Jan-04 22:19 
GeneralRe: opening a doc in IE Pin
alex.barylski21-Jan-04 22:45
alex.barylski21-Jan-04 22:45 
GeneralRe: opening a doc in IE Pin
22491722-Jan-04 0:48
22491722-Jan-04 0:48 
GeneralRe: opening a doc in IE Pin
Abhi Lahare22-Jan-04 17:57
Abhi Lahare22-Jan-04 17:57 
GeneralRe: opening a doc in IE Pin
22491722-Jan-04 23:51
22491722-Jan-04 23:51 
GeneralRe: opening a doc in IE Pin
Abhi Lahare23-Jan-04 0:26
Abhi Lahare23-Jan-04 0:26 
GeneralListbox select Pin
chadell21-Jan-04 21:39
chadell21-Jan-04 21:39 
GeneralRe: Listbox select Pin
Abhi Lahare21-Jan-04 22:16
Abhi Lahare21-Jan-04 22:16 
GeneralRe: Listbox select Pin
Abhi Lahare21-Jan-04 22:26
Abhi Lahare21-Jan-04 22:26 
GeneralComboBox Pin
waliop21-Jan-04 20:26
waliop21-Jan-04 20:26 
GeneralRe: ComboBox Pin
alex.barylski21-Jan-04 22:41
alex.barylski21-Jan-04 22:41 

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.