另一个例子,在调用宿主对象的函数时,如何进行类型强制转换,这也是没有规定的。
Another example is that it's not explained how types are coerced when calling functions on host objects. For example, when you do.
step 3:新建的应用程序域创建宿主环境,如HttpRuntime对象。
Step 3: the newly created application domain creates hosting environment, i.e. the 'HttpRuntime' object.
记住宿主的VBA代码被编译为p代码,而不是本机代码,这会导致性能略微有所下降,尽管在进程内运行能够优化对Office对象的方法调用。
Keep in mind that hosted VBA code is compiled to p-code, not native code, and this incurs a slight performance penalty, although running in process enables optimized method calls to Office objects.
应用推荐