Discussion Locked

Creating Threads in VC++ OLE Server

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I have a VC server which is contained in VB container I have used OLE to interface between them.I would like to multithread in my VC application(.ocx)...How?

5 replies

by ca_rlittle

I suggest you start be reading up on _beginthreadex and _endthreadex. I would also look at EnterCriticalSection() and LeaveCriticalSection() to help syncronize your threads. There are many ways to implement threads.

When designing, be sure to keep in mind the possibility of race conditions, dead-locking, and read/write access by multiple threads.

by jew

Also search MSDN for info about 'Apartment Threading Model'. This will be very applicable.

This discussion is closed to new replies.