Solved

Creating ActiveX control with VC 4

Posted on 1997-09-30
14
215 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?
0
Comment
Question by:willman
  • 7
  • 6
14 Comments
 
LVL 8

Expert Comment

by:gelbert
ID: 1307273
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
0
 
LVL 2

Author Comment

by:willman
ID: 1307274
Where do I get the ActiveX control Wizard?
0
 
LVL 8

Expert Comment

by:gelbert
ID: 1307275
Go  to application wizard and on of choices on the list is "MFC ActiveX Control Wizard".
0
 
LVL 2

Author Comment

by:willman
ID: 1307276
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.  
0
 
LVL 8

Expert Comment

by:gelbert
ID: 1307277
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
0
 
LVL 2

Author Comment

by:willman
ID: 1307278
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.
0
 
LVL 23

Expert Comment

by:chensu
ID: 1307279
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
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 2

Author Comment

by:willman
ID: 1307280
telling me about the help topics in version 5.0 doesn't do me much good...
0
 
LVL 8

Expert Comment

by:gelbert
ID: 1307281
Version VC++ 4.2 ( may be you have to download patch 4.2b ) has in "new project" section menu item "OLE Comtrol Wizard"
0
 
LVL 2

Author Comment

by:willman
ID: 1307282
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...
0
 
LVL 8

Expert Comment

by:gelbert
ID: 1307283
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.
0
 
LVL 2

Author Comment

by:willman
ID: 1307284
is there any way to revert?
0
 
LVL 8

Accepted Solution

by:
gelbert earned 200 total points
ID: 1307285
Reinstall VC++ 4.1 or install 5.0
0
 
LVL 2

Author Comment

by:willman
ID: 1307286
crappy solution, but I guess it works
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Installing Microsoft R server on REDHAT or SUSE Linux 4 131
Named range not carried over 10 61
twoTwo  challenge 35 92
EvenOdd challenge 10 88
In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Delivering innovative fully-managed cloud services for mission-critical applications requires expertise in multiple areas plus vision and commitment. Meet a few of the people behind the quality services of Concerto.

937 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now