Solved

ActiveX

Posted on 2004-08-16
3
301 Views
Last Modified: 2013-11-20
Hi,
 Can any one tell me how to develop  an ActiveX control using VC++???

Thanx in advance
0
Comment
Question by:ArunaK
  • 2
3 Comments
 
LVL 3

Expert Comment

by:jlsjls
ID: 11818875
Using Microsoft Visual C++ :
File - New - MFC ActiveX ControlWizard - Fill in name of component - Next - Finish

Now you've created a framework for an ActiveX control.
In order to set properties :
View - Classwizard - Automation - Add property : fill in name and type of property (Get/Set property)

In order to create methods :
View - Classwizard - Automation - Add method : fill in name and returntype

Now you'll need to add the implementation of the method/property. You can use the ClassView to go to the method/property.

Hope this helps.
jlsjls
0
 

Author Comment

by:ArunaK
ID: 11818895
hi,
thanx for ur response ya after creating the .ocx component as u told how can i use it in a client application???

Thanx in advance
0
 
LVL 3

Accepted Solution

by:
jlsjls earned 50 total points
ID: 11819301
This depends on the client application (language).
You' ll need to register the control first.

Example in Visual C++ using MFC :
File - New - MFC AppWizard - Fill in name of component - Next - Dialog Based- Next - support Automation/ActiveX Controls - Finish

Add Control to application :
In DialogEditor : Project - Add to project - Components and controls - Registered ActiveX Controls - Browse to component and Insert (some classes need to be made).
Drag component on dialogbox and add membervariable for it in Classwizard. One can address methods and properties of the control.

One can follow simular operation in VB.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Get filename and folder into excel 7 79
Unix / Linux grid computing 5 163
Expand to include initial dialog with two choices. 9 80
bigDiff challenge 17 126
Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
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.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

831 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