?
Solved

activex controls

Posted on 2002-06-17
6
Medium Priority
?
249 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 

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 150 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses

752 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