Solved

Preload embedded ActiveX Control

Posted on 1998-03-13
1
417 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

Enroll in June's Course of the Month

June’s Course of the Month is now available! Experts Exchange’s Premium Members, Team Accounts, and Qualified Experts have access to a complimentary course each month as part of their membership—an extra way to sharpen your skills and increase training.

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…
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
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.
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

691 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