Solved

feasible to convert a large .exe to .ocx

Posted on 1998-11-22
1
244 Views
Last Modified: 2013-11-20
I have a rather large MFC GUI exe containing many dialogs and views etc that I have been asked to convert to an ocx. It seems to me that this is not really feasible, that ocx files are more suited to single window uses like a single control etc.
Are major applications ocx files? It there a simple shortcut to convert an existing exe to an ocx? Any tip/advice would be appreciated.
0
Comment
Question by:rascal
1 Comment
 
LVL 11

Accepted Solution

by:
mikeblas earned 100 total points
ID: 1325157
There's no shortcut to such a conversion. OLE Controls have very different runtime environments than EXEs do, and have very different internal architectures because of that. There are some things that just don't translate from one to the other. For example, an OLE Control provides its user interface where its container tells it to while an application shows whatever it wants, when it wants. Further, an OLE control is loaded and discarded by its container on demand, and may be entered on multiple threads from multiple containers. That never happens to an application.

That said, it's completely possible to write an OLE Control, or a set of OLE Controls, that performs the same overall function that an executable program does. You need to start with a clean sheet of paper and design an OLE control, or system of controls, that can be used in the situation the person asking you to do this is envisioning. Maybe you can use some of the logic you've already written for your eexecutable, but you will certainly need to completely reengineer the project and the user interface.

You really need to go back to the person who's aksing you to do this and determine a lot more about their requirements before you proceed.

B ekiM



B ekiM


0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
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…
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.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

930 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now