Click here to Skip to main content
15,916,293 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generaldrag and drop Pin
Mridang Agarwalla13-May-05 21:23
Mridang Agarwalla13-May-05 21:23 
QuestionHow to Customize your Outlook To,Cc& Bcc Button Pin
Member 196301213-May-05 20:02
Member 196301213-May-05 20:02 
QuestionHow to Customize your Outlokk To,Cc& Bcc Button Pin
Member 196301213-May-05 20:02
Member 196301213-May-05 20:02 
QuestionHow to ues Unicode In Console Screen!. Pin
boylangchoi13-May-05 14:24
boylangchoi13-May-05 14:24 
GeneralAbout WriteFileEx and WaitForSingleObjectEx Pin
Cyrus Dang13-May-05 13:12
Cyrus Dang13-May-05 13:12 
GeneralRe: About WriteFileEx and WaitForSingleObjectEx Pin
Alexander M.,13-May-05 13:36
Alexander M.,13-May-05 13:36 
GeneralRe: About WriteFileEx and WaitForSingleObjectEx Pin
Cyrus Dang13-May-05 13:42
Cyrus Dang13-May-05 13:42 
GeneralRe: About WriteFileEx and WaitForSingleObjectEx Pin
Alexander M.,13-May-05 13:46
Alexander M.,13-May-05 13:46 
WriteFile does exactly that you want to program yourself!
Using asynchron APIs does only make sense if you want the CALLING THREAD to do some other work while the read process is pending!

By the way, there is no reason to call WriteFileEx every time a write operation was completed.
You can also call WriteFileEx many times at the same time, the system queues the data and tells you when the complete process is complete. There is no event handle when you use WriteFileEx.
After a write operation is complete the OS will call the completion routine you set as parameter of WriteFileEx. So the only way to use a wait function is to create an event yourself and set it within the completion routine.

Don't try it, just do it! Wink | ;-)
GeneralRe: About WriteFileEx and WaitForSingleObjectEx Pin
Cyrus Dang13-May-05 14:04
Cyrus Dang13-May-05 14:04 
GeneralRe: About WriteFileEx and WaitForSingleObjectEx Pin
Blake Miller16-May-05 8:51
Blake Miller16-May-05 8:51 
GeneralChanging the appearance of a common control system wide Pin
Kuniva13-May-05 12:08
Kuniva13-May-05 12:08 
GeneralRe: Changing the appearance of a common control system wide Pin
alex.barylski13-May-05 17:16
alex.barylski13-May-05 17:16 
QuestionCan not run constructor WinApp Pin
ytvsoftware13-May-05 11:53
ytvsoftware13-May-05 11:53 
AnswerRe: Can not run constructor WinApp Pin
Bob Stanneveld15-May-05 3:07
Bob Stanneveld15-May-05 3:07 
GeneralDirectX9 - 3d object translating with sine wave pattern ... Pin
jc0dex13-May-05 10:40
jc0dex13-May-05 10:40 
GeneralRe: DirectX9 - 3d object translating with sine wave pattern ... Pin
Alexander M.,13-May-05 13:43
Alexander M.,13-May-05 13:43 
GeneralRe: DirectX9 - 3d object translating with sine wave pattern ... Pin
jc0dex13-May-05 17:23
jc0dex13-May-05 17:23 
GeneralRe: DirectX9 - 3d object translating with sine wave pattern ... Pin
jc0dex13-May-05 17:41
jc0dex13-May-05 17:41 
GeneralTranslucent Painting Issues Pin
Strath-Clyde13-May-05 10:07
Strath-Clyde13-May-05 10:07 
GeneralRe: Translucent Painting Issues Pin
Strath-Clyde13-May-05 10:14
Strath-Clyde13-May-05 10:14 
GeneralQuestion: Status bar didn't display updated message problem. Pin
Anonymous13-May-05 10:05
Anonymous13-May-05 10:05 
GeneralRe: Question: Status bar didn't display updated message problem. Pin
toxcct13-May-05 21:26
toxcct13-May-05 21:26 
GeneralCopying Hidden Window Aspect Using GDI Pin
Axonn Echysttas13-May-05 9:41
Axonn Echysttas13-May-05 9:41 
GeneralRe: Copying Hidden Window Aspect Using GDI Pin
PJ Arends13-May-05 10:14
professionalPJ Arends13-May-05 10:14 
GeneralRe: Copying Hidden Window Aspect Using GDI Pin
jc0dex13-May-05 10:47
jc0dex13-May-05 10:47 

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.