Solved

feasible to convert a large .exe to .ocx

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

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: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
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.
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

626 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