Solved

activex controls

Posted on 2002-06-17
6
244 Views
Last Modified: 2013-11-20
Hi,

Please tell me how to create and use activex controls in mfc?Plz explain me with simple examples.

regards
shankarraj
0
Comment
Question by:shankarraj
6 Comments
 
LVL 3

Expert Comment

by:jlsjls
ID: 7086578
* Create ActiveX control in MFC
- use wizard : New Project - MFC ActiveX ControlWizard.
- give it a name , normally one can accept the default settings.
Now you have an ocx with no methods and properties.
To add methods and properties, use ClassWizard - Tab 'Automation' where you can add methods, properties.
You need to specify name, params,...
* In order to use (test) the activeX control, you can use the ActiveX Control Test container (see Tools in main window). You need to insert the component and you can call its methods.
* In order to use the ocx in an MFC application (dialog based), go to Project - Add to project - Components and controls. You need to browse for the control.

Hope this helps.
regards.
jlsjls
0
 
LVL 16

Expert Comment

by:AlexNek
ID: 7090193
0
 
LVL 2

Expert Comment

by:christophm
ID: 7094760
Check out the !DETAILED! step-by-step at my web site
www.teleport.com/~millercg
download the Ax sample, unzip it, and read the Word document.
You will note I mention 'Prosise', these are the notes I made for myself while going through "Programming Windows with MFC", by Jeff Prosise - available from Microsoft Press (and Amazon.Com, and ...).
good luck - christophm
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:shankarraj
ID: 7097815
Hi christophm,

the site www.teleport.com/~millercg is not opening at all.
waiting for your help.

regards
shankarraj
0
 
LVL 2

Accepted Solution

by:
christophm earned 50 total points
ID: 7098832
Hi shankarraj ,
It works when I click on the link in your reply above.  If you want I will send you the ZIP file (the instructions and sample project) it is 300KB.  Post your EMAIL or send to me at millercg@teleport.com.
thanks - christophm
0
 

Author Comment

by:shankarraj
ID: 7121247
hi christophm

u send it to email id joshig@softhome.net

regds
shankarraj
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

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.
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

756 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