Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Calling OCX created in VB from VC++

9 views
Skip to first unread message

Raj Kulkarni

unread,
Nov 29, 2000, 3:00:00 AM11/29/00
to
When I try to call an OCX that has been created in Visual Basic from Visual
C++, I get the following message:


"Non-modal froms cannot be displayed in this host applications from an
ActiveX DLL, ActiveX Control, or Property Page."

When the same OCX is recreated in the modal configuration, it works fine.

My desire is to call the OCX, when it is modeless. Any thoughts.
--
Raj Kulkarni

Alexander Nickolov

unread,
Nov 29, 2000, 3:00:00 AM11/29/00
to
That is an arcane topic. You have to implement a very non-trivial
interface on your message filter - IOleComponentManager. You won't
find this information anywhere in MSDN save for one sample - SPRUUIDS.
Even there, it doesn't mention that this interface is in fact used by the
VB modeless forms and is implemented on the message filter for the
thread's STA. That you can get from some page about the ActiveX
Designers which also use it. The interface is called IComponentManager
though, but it is the same interface with the same IID. You can get its
definition from the SPRUUIDS sample's files. Search for the two names
of the interface and you'll find the aforementioned articles. That's
all I've ever come onto about the subject. I haven't implemented it
myself so I don't know if it works or not...

--
=====================================
Alexander Nickolov
Microsoft MVP [VC], MCSD
email: agnic...@geocities.com
MVP VC FAQ: http://www.mvps.org/vcfaq
=====================================

"Raj Kulkarni" <rajku...@gl.com> wrote in message
news:eU9SL7hWAHA.255@cppssbbsa03...

0 new messages