Article View: comp.lang.basic.visual.misc
Article #166Multiple instances of a VBX
From: Bill Mastbrook
Date: Thu, 15 Feb 1996 23:03
Date: Thu, 15 Feb 1996 23:03
17 lines
1133 bytes
1133 bytes
How do you differentiate between different instances of a VBX? When multiple instances of a control are created, the same HCTL value is always passed to the main control procedure for all messages. The HCTL value is used to generate events with the VBFireEvent function. So, without a unique HCTL value, how do I generate the events in the correct instance of the control? I have created a winsock VBX (with VC++ 1.5) and if multiple applications using the VBX are opened, all events generated within the VBX are passed to the last created instance. Also, are there any good references for creating VBX's, OCX's, or converting VBX's to OCX's? Thanks
Technical Details
Message-ID:
<4g0efd$1mb@news.its.com>Path:
arc1-ca.pugleaf.net!news.its.com!usenetShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!news.its.com!usenet From: mastbrook@duff.com (Bill Mastbrook) Newsgroups: comp.lang.basic.visual.misc,comp.lang.c,comp.lang.c++,comp.os.ms-windows.programmer.controls,comp.os.ms-windows.programmer.misc Subject: Multiple instances of a VBX Date: Thu, 15 Feb 1996 23:03:28 GMT Organization: Information Technology Solutions, Inc. Message-ID: <4g0efd$1mb@news.its.com> NNTP-Posting-Host: duff30.duff.com X-Newsreader: Forte Free Agent 1.0.82