Solved

feasible to convert a large .exe to .ocx

Posted on 1998-11-22
1
283 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: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
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.
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …
Suggested Courses

751 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