Solved

feasible to convert a large .exe to .ocx

Posted on 1998-11-22
1
229 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
repeateFront java challenge 31 87
ODBC Connection Logging, ADO.NET 6 49
if loop in java 3 114
wordappend challenge 8 84
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: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
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.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

708 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