Solved

Preload embedded ActiveX Control

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

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
bobThere java chalenge 45 94
Annoying "thing" blocks my view 4 115
Problem to open Excel file 15 174
Authenticate using sesu from script 7 56
In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
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.
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

856 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