Solved

Preload embedded ActiveX Control

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
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.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

759 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

Need Help in Real-Time?

Connect with top rated Experts

26 Experts available now in Live!

Get 1:1 Help Now