The information in this article applies to:
SUMMARYWhen bringing up a dialog template that contains one or more OLE Controls, the delay can be significant depending on the speed of the computer. You can use the AfxOleLockControl() function to speed up the loading of the dialog by preloading the control in the application. MORE INFORMATION
You can load the OLE Control into the address space of the executable at
any time by using the AfxOleLockControl() function. There are two versions
of this function, one that takes a class id (CLSID) and one that takes a
program id (ProgID). REFERENCESThese functions were not documented in Visual C++ 4.0 Help. You can find the source code for these functions in Occlock.cpp in the \Msdev\Mfc\Src subdirectory. Additional query words:
Keywords : kbole kbprg kbCtrl kbMFC kbVC |
Last Reviewed: July 22, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |