-
公开(公告)号:US08935686B2
公开(公告)日:2015-01-13
申请号:US13596303
申请日:2012-08-28
IPC分类号: G06F9/45
CPC分类号: G06F11/0718 , G06F8/41 , G06F9/449 , G06F11/0772
摘要: A condition detected by a virtual routine may be treated by setting an error code or raising an exception, depending on circumstances. Enhanced vtable layouts promote availability of both error-ID-based and exception-based virtual routines, while maintaining compatibility. Compilers treat virtual routines based on their circumstances. One enhanced vtable includes error-ID-based routine pointers in a COM-layout-compatible portion and exception-based routine pointers in an extension. For a virtual routine not overridden by a derived class, a compiler generates a direct call. For an object instance of a specific type, the compiler generates a direct exception-based call for the object's routine. For a factory-sourced object's routine, the compiler generates a virtual exception-based call. When the virtual routine belongs to a component having an enhanced vtable, the compiler may generate a virtual call using the exception-based routine pointer. Code wrappers between COM and native format may also be used.
摘要翻译: 可以根据情况通过设置错误代码或提高异常来处理由虚拟例程检测到的条件。 增强的vtable布局可以提高基于错误ID和基于异常的虚拟例程的可用性,同时保持兼容性。 编译器根据情况对虚拟例程进行处理。 一个增强的vtable在COM-layout兼容部分中包含基于错误ID的例程指针,并在扩展中包含基于异常的例程指针。 对于未被派生类覆盖的虚拟例程,编译器将生成直接调用。 对于特定类型的对象实例,编译器会为对象的例程生成直接基于异常的调用。 对于工厂来源的对象的例程,编译器生成基于虚拟异常的调用。 当虚拟例程属于具有增强型vtable的组件时,编译器可以使用基于异常的例程指针生成虚拟调用。 也可以使用COM和本机格式之间的代码包装。
-
公开(公告)号:US20140068573A1
公开(公告)日:2014-03-06
申请号:US13596303
申请日:2012-08-28
CPC分类号: G06F11/0718 , G06F8/41 , G06F9/449 , G06F11/0772
摘要: A condition detected by a virtual routine may be treated by setting an error code or raising an exception, depending on circumstances. Enhanced vtable layouts promote availability of both error-ID-based and exception-based virtual routines, while maintaining compatibility. Compilers treat virtual routines based on their circumstances. One enhanced vtable includes error-ID-based routine pointers in a COM-layout-compatible portion and exception-based routine pointers in an extension. For a virtual routine not overridden by a derived class, a compiler generates a direct call. For an object instance of a specific type, the compiler generates a direct exception-based call for the object's routine. For a factory-sourced object's routine, the compiler generates a virtual exception-based call. When the virtual routine belongs to a component having an enhanced vtable, the compiler may generate a virtual call using the exception-based routine pointer. Code wrappers between COM and native format may also be used.
摘要翻译: 可以根据情况通过设置错误代码或提高异常来处理由虚拟例程检测到的条件。 增强的vtable布局可以提高基于错误ID和基于异常的虚拟例程的可用性,同时保持兼容性。 编译器根据情况对虚拟例程进行处理。 一个增强的vtable在COM-layout兼容部分中包含基于错误ID的例程指针,并在扩展中包含基于异常的例程指针。 对于未被派生类覆盖的虚拟例程,编译器将生成直接调用。 对于特定类型的对象实例,编译器会为对象的例程生成直接基于异常的调用。 对于工厂来源的对象的例程,编译器生成基于虚拟异常的调用。 当虚拟例程属于具有增强型vtable的组件时,编译器可以使用基于异常的例程指针生成虚拟调用。 也可以使用COM和本机格式之间的代码包装。
-
公开(公告)号:US20060238816A1
公开(公告)日:2006-10-26
申请号:US11473222
申请日:2006-06-21
IPC分类号: H04N1/409
CPC分类号: G06F9/451
摘要: Hosting user interface controls in a window via an interface for controlling the window is disclosed. One aspect of the invention is a computerized system having an operating system and at least one program. The operating system provides for hosting controls of a predetermined type within windows of a predetermined type via an interface for controlling the windows. The programs utilize the interface to host one or more controls within one or more windows. Thus, with respect to versions of the MICROSOFT WINDOWS operating system, a program may utilize the WIN32 API (i.e., interface) to host ACTIVEX-type controls within windows hosted by the program, also via the WIN32 API.
-
-