Hi.
Does 32-bit Windows console support multithread programming? For example, is is possible to use _beginthreadex(), WaitForSingleObject(), and CloseHandle() in a 32-bit Windows console program?
Thanks,
Kuphryn
Printable View
Hi.
Does 32-bit Windows console support multithread programming? For example, is is possible to use _beginthreadex(), WaitForSingleObject(), and CloseHandle() in a 32-bit Windows console program?
Thanks,
Kuphryn
yes. a way to think of it is that they're 100% windows apps and can access all the facilities of windows. they just dont happen to use the GUI facilities.
Just include windows.h and you should be fine.
Okay. Thanks.
Kuphryn
Remember that what seperates a console app from a win32 app when your linker makes the exe, is that the C runtime calls main for 1 and WinMain for another....and also it sets a switch in the headers of the exe that tells the loader to create a console......other than that they are pretty similar
Thank.
Ahh. Yeah, I remember reading that from Jeffrey Richter's Programming Applications for Microsoft Windows Fourth Edition.
Kuphryn