NODUALINTERFACE Entry is Placed in Registry by VFP 5.0Last reviewed: November 18, 1997Article ID: Q158765 |
5.00
WINDOWS
kbsetup kbusage kbinterop
The information in this article applies to:
SUMMARYSome ActiveX controls can support early binding, that is, where the control supports a dual interface (a combination of an IDispatch and a Vtable interface). If an ActiveX control registers itself incorrectly as supporting a dual interface, then it might produce incorrect error messages. These errors may include 'Invalid Page Faul't errors under Windows 95 or 'Access Violation' errors under Windows NT.
MORE INFORMATIONSome ActiveX controls might be incorrectly registered as supporting Vtable binding. This might cause an error when you use an ActiveX control. Visual FoxPro 5.0 addresses this error in the development environment by adding the "NoDualInterface" key to the registry. This key lists three known controls that can register themselves as supporting Vtable binding. Note that there may be other Activex controls that register themselves as supporting Vtable binding when, in fact, they do not. If you add them to this list, they function properly. When Visual FoxPro is used to build an .exe file, it does not add the NoDualInterface key to the registry file upon installation. If an ActiveX control does not perform correctly, use the SYS(2333) function to enable or disable dual-interface support of an ActiveX control. You can also build a .reg file and run it as a post-executable when you install the .exe file. This adds the "NoDualInterface" key to the registry. Or, you can write a program in Visual FoxPro that updates the registry.
REFERENCESFor more information about how to write a program in Visual FoxPro to update the registry, please see the following article in the Microsoft Knowledge Base:
ARTICLE-ID: Q135398 TITLE : How To Write to the Windows Registry Using API CallsFor more information about early binding, please see the following article in the Microsoft Knowledge Base:
ARTICLE-ID: Q138138 TITLE : Three Binding Types (Late, ID, Early) Possible in VB for AppsCurrently, Visual FoxPro 5.0 is the only Microsoft product that supports the early Vtable binding of an ActiveX control. To disable dual-interface functionally of an ActiveX control, use the SYS(2333) function.
|
KBCategory: kbsetup kbusage kbinterop
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |