hemantmadaan
Programmer
I am facing this difficulty as I am a beginner in OCX programming and know nothing in writing and using simultaneous threads in an OCX to be used in a project in VB.
One thread is used to run as a socket server accepting the connections and then messages on some port.
Next thread pings DB server at a apecific interval and gets the data from there.
I started writing the component using MFC OCX wizard, I am able to start the threads using AfxBeginThread. Both the threads are using one global variale bServerRunning which I set to false to stop the two threads.
I tested this component with a VB test application and in the end its craching the complete VB IDE. Please help me in this regards. I really need to finish this soonest possible.
Thanks a lot.
One thread is used to run as a socket server accepting the connections and then messages on some port.
Next thread pings DB server at a apecific interval and gets the data from there.
I started writing the component using MFC OCX wizard, I am able to start the threads using AfxBeginThread. Both the threads are using one global variale bServerRunning which I set to false to stop the two threads.
I tested this component with a VB test application and in the end its craching the complete VB IDE. Please help me in this regards. I really need to finish this soonest possible.
Thanks a lot.