We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now

x

Creating ActiveX control with VC 4

willman
willman asked
on
Medium Priority
268 Views
Last Modified: 2013-11-19
I would like to create ActiveX controls for my web site using the version of Visual C++ that I currently own (v. 4).  I have downloaded the ActiveX SDK, but have found very little help in its documentation and have been unable to complie any of its samples.  Can someone show how to create a simple ActiveX control, or point to some better documentation or give me a small sample app that I can compile?
Comment
Watch Question

Commented:
Simplest way to create ActiveX control with VC++ is to use MFC ActiveX control Wizard. It creates shell for you and the only thing which you have to do is to draw wtaever picture you want and some C++ programming accossiated with your control functionality

Author

Commented:
Where do I get the ActiveX control Wizard?

Commented:
Go  to application wizard and on of choices on the list is "MFC ActiveX Control Wizard".

Author

Commented:
Nope, the only time the App Wizard even mentions ActiveX is in Step 3 when it asks what kind of OLE compound document support I want -- If I select server, it allows me to check off ActiveX document server.  There is no ActiveX Control Wizard.  

Commented:
May be it is in 4.1 or 4.2 but I definitly used one of these versions to create ActiveX controls. Try to upgrade or look on MS web site if there anything to download like Inet or ActiveX SDK to enable your version to build ActiveX controls

Author

Commented:
I am currently using version 4.2 and I have installed the ActiveX SDK, but none of the examples or samples with the SDK will compile correctly.

Commented:
The book "ActiveX Controls Inside Out" published by Microsoft Press is your best choice. Besides, Visual C++ 4.2 and MSDN library come with some tutorials (under Visual C++ Tutorials: Circle: ActiveX Control  Design an ActiveX control). You may query "ActiveX Control" keyword. Visual C++ Programmer's Guide that comes with Visual C++ 5.0 has the following topic:
ActiveX Tasks

Home | Overview | Details



ActiveX support in MFC includes ActiveX controls and ActiveX documents (formerly known as OLE controls and OLE documents, respectively).

What do you want to do?



•Learn more about ActiveX
•Learn more about ActiveX controls
•Learn more about ActiveX documents
•Create an ActiveX control
•Implement ActiveX documents in my application

Author

Commented:
telling me about the help topics in version 5.0 doesn't do me much good...

Commented:
Version VC++ 4.2 ( may be you have to download patch 4.2b ) has in "new project" section menu item "OLE Comtrol Wizard"

Author

Commented:
I do have the OLE control wizard... is it the same as your ActiveX control wizard?  I have already tried to create a projecct with this, but the created .ocx file does not work on the web...

Commented:
I can not find this documentation but as must as I remember VC 4.1 was able to create Web OCX controls but this functionality was removed in VC 4.2.

Author

Commented:
is there any way to revert?
Commented:
Reinstall VC++ 4.1 or install 5.0

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts

Author

Commented:
crappy solution, but I guess it works
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.