Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

feasible to convert a large .exe to .ocx

Posted on 1998-11-22
1
Medium Priority
?
299 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 200 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

Moving data to the cloud? Find out if you’re ready

Before moving to the cloud, it is important to carefully define your db needs, plan for the migration & understand prod. environment. This wp explains how to define what you need from a cloud provider, plan for the migration & what putting a cloud solution into practice entails.

Question has a verified solution.

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

Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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.
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…

722 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