Solved

Preload embedded ActiveX Control

Posted on 1998-03-13
1
413 Views
Last Modified: 2013-11-19
I have a MDI App with a View that embeds an Control
(RichEditCtrl, ATL project). When opening the "Editor" for the first time, the control's wrapper class member CreateControl() is called and all the MFC stuff does then internally load the richedxx.dll and module initializing.
The Problem is speed. It takes usually 5..8 seconds to do
all the stuff (locate INPROC server, Activate...).
When opening another Editor/View it then takes only 1 sec, because the INPROC server is already in memory.
Is there a solution to get around with the 1.st-load-time-delay ? Is it possible to "preload" that INPROC server (in InitInstance) without having trouble later with the "CreateControl" stuff (module state managment, cp, advise).  

Thanks in advance.
0
Comment
Question by:focht
[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 15

Accepted Solution

by:
Tommy Hui earned 10 total points
ID: 1316975
Not really. The work needs to be done, no matter what. However, you can change some of the work to be done earlier, but the delay is moved from bringing up the view versus the startup of your program.

You can do this by adding code to load the necessary DLLs at the startup of the your program using LoadLibrary.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
haveThree challenge 22 123
zeroMAx challenge 20 125
Use of condition with 'serial' in ansible 2 84
Problem to Office 1 40
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…
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.

740 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