32-bit Console & Multithreading:: C++

This is a discussion on 32-bit Console & Multithreading:: C++ within the C++ Programming forums, part of the General Programming Boards category; Hi. Does 32-bit Windows console support multithread programming? For example, is is possible to use _beginthreadex(), WaitForSingleObject(), and CloseHandle() in ...

  1. #1
    Registered User
    Join Date
    Nov 2001
    Posts
    1,348

    32-bit Console & Multithreading:: C++

    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

  2. #2
    moi
    moi is offline
    Registered User moi's Avatar
    Join Date
    Jul 2002
    Posts
    946
    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.
    hello, internet!

  3. #3
    ¡Amo fútbol!
    Join Date
    Dec 2001
    Posts
    2,136
    Just include windows.h and you should be fine.

  4. #4
    Registered User
    Join Date
    Nov 2001
    Posts
    1,348
    Okay. Thanks.

    Kuphryn

  5. #5
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,789
    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

  6. #6
    Registered User
    Join Date
    Nov 2001
    Posts
    1,348
    Thank.

    Ahh. Yeah, I remember reading that from Jeffrey Richter's Programming Applications for Microsoft Windows Fourth Edition.

    Kuphryn

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Converting 32 bit binary IP to decimal IP (vice-versa)
    By Mankthetank19 in forum C Programming
    Replies: 15
    Last Post: 12-28-2009, 07:17 PM
  2. Replies: 8
    Last Post: 05-21-2009, 06:47 PM
  3. 32 bit floating point multiplication
    By HelpMePlease in forum C Programming
    Replies: 1
    Last Post: 11-30-2004, 08:39 AM
  4. bit patterns of negtive numbers?
    By chunlee in forum C Programming
    Replies: 4
    Last Post: 11-08-2004, 08:20 AM
  5. Array of boolean
    By DMaxJ in forum C++ Programming
    Replies: 11
    Last Post: 10-26-2001, 12:45 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21