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

help with activex controls in VC++.NET

1 view
Skip to first unread message

kamesh kompella

unread,
Jul 5, 2002, 1:27:51 AM7/5/02
to
i am trying to add an activex control to my vc++.net project. in the earlier
versions, i would simply go to
projects->components and gallery and add the activex control. this would
result in the creation of the
required classes and the header file based on the control.

in vc++.net i found that i could add an activex control from the toolbox
while in the design mode in an
mfc project. the control is brought in alright but neither the classes nor
the header files are generated.
in addition, this seems to work only in the design mode meaning one cannot
use the controls in a
non mfc project!

i will really appreciate any help in this regard as i am currently dead in
the water till i figure this out.

thanks in advance.

kamesh kompella


kamesh kompella

unread,
Jul 5, 2002, 1:37:47 AM7/5/02
to
never mind. solution: project->add class -> mfc class ->mfc class from
activex.
thanks.

-k

"kamesh kompella" <kkom...@hotmail.com> wrote in message
news:r7aV8.405238$352.52879@sccrnsc02...

Martin Baker

unread,
Jul 5, 2002, 3:46:48 AM7/5/02
to
kamesh kompella,

I have used an activex control in my managed vc++ project (with some help
from this list). I had to do this because managed VC++ does not support
OpenGL or Direct3D. Anyway I have explained I how I did it at the following
link:

http://www.martinb.com/mjbWorld/programmersGuide/netSpecific/includeActivex/
index.htm

Martin

"kamesh kompella" <kkom...@hotmail.com> wrote in message
news:r7aV8.405238$352.52879@sccrnsc02...

Ronald Laeremans [MSFT]

unread,
Jul 6, 2002, 4:15:56 PM7/6/02
to
Hi Martin,

Whether you are compiling codee as managed code or not, in C++ you can
always directly use any unmanaged C++ header file, DLL and library. Just
include the header file and link with the (import) library and you are good
to go. Including all MS shipped (and third party) OpenGL and FDirectX
libraries that I know of.

If I am misinterpreting your statement as to not being able to use these
technologies in MC++, please give me some more details so we can help you.

Ronald Laeremans
Visual C++ compiler and libraries team

"Martin Baker" <bak...@btinterner.com> wrote in message
news:ag3it7$hm9$1...@helle.btinternet.com...

Martin Baker

unread,
Jul 7, 2002, 3:50:04 AM7/7/02
to
Ronald,

Yes please, I would appreciate some guidance on the best way to do this.

My program is a VRML editor, it is written in mc++ and uses the .NET
framework class library.

The program uses System::ComponentModel::Container and this contains many
Forms windows containing TreeView, ListView, and also 1 or more 3D windows.

The only way I could find to implement this is to encapsulate the 3D window
as a separate activeX program as described at:
http://www.martinb.com/mjbWorld/programmersGuide/netSpecific/createATL/

I have then added this component to the Form as an AxHost and put this into
the Container.

This is not ideal, as it does not seem very efficient to pass big meshes and
textures through an activeX interface. I would like some other way to mix 3D
windows (OpenGL or direct3D) with .NET forms.

What would you suggest?

Martin

"Ronald Laeremans [MSFT]" <ron...@online.microsoft.com> wrote in message
news:ux01SnSJCHA.2748@tkmsftngp13...

0 new messages