Solved

activex controls

Posted on 2002-06-17
6
243 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
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 

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

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Turn a spreadsheet into a vba executable. 2 95
Expand macro to ask for filename column 8 37
while loop over for loop 7 115
NotAlone Challenge 20 84
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
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.
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

829 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