Hello people. I need to program a visual c++ 6 DLL that has its own thread to refresh a server, so if the thread become blocked i can continue with the blitz3d execution without blocking.
I have developed some dll's for basic operations without problems, but i can figure out how to make an individual thread, so i can send messages to the thread with the operations i want it to do.
Any help or tutorial please?
Thanks a lot!
P.D: The idea is make something like this:
In Blitz3d:
-------------
while (not keyhit(1))
UpdateInput()
UpdatePhysics()
DLL_REFRESHSERVER()
RenderWorld()
wend
In the DLL:
---------------
DLL_RefreshServer()
{
OpenTCP(server,port)
write refreshstring
}
I have developed some dll's for basic operations without problems, but i can figure out how to make an individual thread, so i can send messages to the thread with the operations i want it to do.
Any help or tutorial please?
Thanks a lot!
P.D: The idea is make something like this:
In Blitz3d:
-------------
while (not keyhit(1))
UpdateInput()
UpdatePhysics()
DLL_REFRESHSERVER()
RenderWorld()
wend
In the DLL:
---------------
DLL_RefreshServer()
{
OpenTCP(server,port)
write refreshstring
}