Precautions for adding macro support in your application (UPDATE)

zhaozj2021-02-16  51

With a notebook, the PC keyboard is not used to it.

In my article, script browser (http://blog.9cbs.net/jiangsheng/archive/2003/11/3795.aspx / http://www.9cbs.net/develop/Article/21 Performing how to add macro support in an application in /21702.shtm. It is important to note that the macro's operating environment - VBS scripting engine - currently supports only variant data types. One result is that when your application triggers an event, if its parameters are not all variants, then the macro you have written is not always called. The method of solving is always stating that your event parameters are variants data types.

In addition, the MFC's wizard is incorrectly generated for the Variant_Bool type event parameter generated a Bool type event handler parameter. This automation object will cause access to the crossover when it is running in the host like VB. See Microsoft Knowledge Base Article Q199315 FIX: Method with Bool * Parameter Type Overwriting Memory In Visual Basic. The method of solving is to manually modify the code generated by the class wizard.

转载请注明原文地址:https://www.9cbs.com/read-19752.html

New Post(0)