Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

activex controls

Posted on 2002-06-17
6
Medium Priority
?
253 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
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.

 

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

Industry Leaders: 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

Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
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.
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…

597 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