Thread: multithread in 98

  1. #1
    Registered User
    Join Date
    Mar 2005
    Posts
    11

    multithread in 98

    i'm new to windows programming, and i want to know how to create new threads, the only thing i can find is on msdn is about createthread()... but apperently thats for windows server editions or whatever.
    i think i read somewhere that winmain() requests a new process slot or something like that, but i know i need more info than that...
    can anyone here help me?

  2. #2
    Registered User
    Join Date
    Apr 2002
    Posts
    1,571
    You can use the API CreateThread() as long as you're on Windows 95 or later.
    "...the results are undefined, and we all know what "undefined" means: it means it works during development, it works during testing, and it blows up in your most important customers' faces." --Scott Meyers

  3. #3
    Registered User
    Join Date
    Mar 2005
    Posts
    1
    Hi,
    The Microsoft sample DPchat is a good demonstration of using createthread(). It also creates 2 events for the thread and might be worthy of study for you. It's in the the pre-DX8 sdk packages and can the files can be downloaded indiviually from Icarus.

  4. #4
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,829
    You should be careful using the CreateThread() API function if you use the standard library functions. You can introduce memory leaks.

    I have a basic MT tutorial starting here...

    http://www.adrianxw.dk/SoftwareSite/.../Threads1.html
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. HUGE fps jump
    By DavidP in forum Game Programming
    Replies: 23
    Last Post: 07-01-2004, 10:36 AM
  2. Windows 98 Auto Scroll Problem
    By StanleyC in forum Windows Programming
    Replies: 2
    Last Post: 04-26-2004, 08:05 AM
  3. Resource ICONs
    By gbaker in forum Windows Programming
    Replies: 4
    Last Post: 12-15-2003, 07:18 AM
  4. 98 SE and video cards
    By ober in forum Tech Board
    Replies: 3
    Last Post: 04-07-2003, 08:29 AM
  5. Networking 98 with XP
    By Squintz in forum Tech Board
    Replies: 8
    Last Post: 01-03-2003, 06:11 PM