Advertisement

Multithreading Problem

Started by July 31, 2003 03:09 PM
2 comments, last by PhenixDarkPhire 21 years, 6 months ago
I''m writing a game that uses OpenGL and Winsock, and I need to multithread portions of the server. I tried using MFC, but including the MFC libraries gave me a bunch of linker errors. Are there libraries I need to include along with MFC, or is there just a conflict with the OpenGL and Winsock libraries? If so, can I still do multithreading easily without using MFC? How? Many thanks.
To answer your question: You can do multithreading using the Win32 API.

To give you an advice: Don''t use multithreading if you don''t have to, use non-blocking sockets (don''t know if you are going to use multithreading for blocking sockets but I''m taking a guess)
Advertisement
I had thought of using nonblocking sockets, but don''t have enough experience with them to know how that would work. Would you mind sending me some sample code or point me to a website? Thanks.
no need to point to a site when you''re already there check out the winsock articles

This topic is closed to new replies.

Advertisement