Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CreateThread

Status
Not open for further replies.

eric91850

Programmer
Jul 29, 2007
12
US
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(1024,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());

}
 
Did you check the MSDN?
That's the first place you should always look for info about Windows API functions.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top