Hi There,
I am developing an OCX in VC++ using MFC and added a custom property page on to that and want to exchange these properties with the control. With DoDataExchange of the property page I am able to get the properties from the control but nut the reverse, i.e., if I load the control onto...
I checked at my part. I am not doing any such silly thing like killing my own main thread. The VB is still crashing, I have a hunch that it might be due to some threading model used in the project.
Kindly see and help me with these details.
Was that a joke... :)
Anyways, yeah I am maintaining two pointers each for threads and send WM_QUIT using PostThreadMessage API of CWinThread.
I hope that helps.
ok let me elaborate a bit more,
I created two classes CPingServer and CListenServer derived from CWinThread. I want these threads to only start when the control comes in a running user state. I am checking this in DoPropertyExchange and when the userMode becomes design time again, I am sending...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.