CreateThread

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tobycraftse
    New Member
    • Feb 2008
    • 6

    CreateThread

    I heard I should use the C function - CreateThread() to create thread.

    I have a graphics program that draws some animations. How can I add
    another thread to do other stuff like file processing -OR- internet
    query?

    Then where can I find tutorial on writing win32 threading code?

    any books suggestion? any sample code?

    following is my main program
    =============== ======
    #include "ofMain.h"
    #include "testApp.h"

    int main( ){

    ofSetupOpenGL(1 024,768, OF_WINDOW); //
    <-------- setup the GL context

    // this kicks off the running of my app
    // can be OF_WINDOW or OF_FULLSCREEN
    // pass in width and height too:

    ofRunApp(new testApp());

    }
  • weaknessforcats
    Recognized Expert Expert
    • Mar 2007
    • 9214

    #2
    Get a copy of Windows via C/C++ by Jeffrey Richter 2008. Chapters 6 through 12 have what you want.

    Comment

    Working...