Beth Massi描述的第二种方法就是从VBA宏调用VSTO代码。
The second method Beth Massi describes is calling VSTO code from within VBA macros.
你也可以从更高层递归地调用这些打包了的交互活动,类似于宏调用(图4)。
You can invoke these packaged interactions recursively from within higher-level interactions analogous to macro invocations (Figure 4).
清单10是前面的宏调用的宏定义(所有带webserver:前缀的函数是web服务器提供的假想函数)。
Listing 10 is what the macro definition for the previous macro invocation might look like (all functions prefixed with webserver: are hypothetical functions provided by the web server).
在这个宏执行时,它按照以下形式将my - if表达式与模板进行匹配(换句话说,将宏调用与宏定义模式进行匹配)。
When this macro executes, it will match the my-if expression up to the template like this (in other words, matching a macro invocation to a macro definition pattern).
有两种形式,第一种是宏,它就像是具有延迟参数的方法调用一样,这些参数可用特殊的方式计算出来。
They take two forms, the first one is macros, which is basically like method calls with lazy arguments that can be evaluated in special ways.
这是一个特定的宏,它会得到自动调用以打开文件。
This is a special macro that is automatically called upon opening the document.
父级宏流应将“子流程”微流作为子流程进行调用。
The parent macroflow should call the "sub-process" microflow as a child process.
它在此上下文中用作宏,通过闭包调用函数方法将在定义它的上下文中执行函数调用。
It ACTS like a macro in this context, where calling the method of function via the closure makes the function call in the context of where it's defined.
调用一个宏检查传递的条目名称语法和条目名称是否为NULL。
A macro is called to check if the entry name syntax and the entry name is passed as NULL.
只需调用预定义的run_all_tests宏,而不需要通过创建或驱动单独的运行器类来执行测试。
Just making a call to the predefined RUN_ALL_TESTS macro does the trick, as opposed to creating or deriving a separate runner class for test execution.
最简单的就是使用应用程序在VSTO中调用VBA宏。
The easiest is to simply call the VBA macro from within VSTO by using the Application.Run method.
我们可以在YY _ INPUT宏中添加一个对GetNextChar函数的调用,后者从文件中读取数据,并保留了下一个要读取的字符的位置信息。
You can add a call in YY_INPUT to the function GetNextChar , which reads the data from a file and keeps information about the position of the next character to read.
如果表达式不是常量,就调用另一个宏函数把值向上取整到2的幂。
Otherwise, if the expression is not a constant, another macro function is called to round up the value to a power of two.
清单6显示的应用程序使用了_ syscall宏定义的所有系统调用。
Listing 6 shows an application that USES each of your system calls as defined by the _syscall macros.
现在,让我们来看一下如何使用 _syscall宏来使新系统调用对于用户空间可见。
Now, here's how you use the _syscall macros to make your new system calls visible to the user-space.
在本例中,您看到了new -concat和new - compare - criteria等函数的用法,它们是由我们在清单5中调用的defnode宏创建的。
In this example, you see the use of functions like new-concat and new-compare-criteria, which were created by the defnode macro we called back in Listing 5.
当从调用者执行该sql函数时,其主体就是扩展到调用者中的宏。
When the SQL function is executed from the caller, its body is macro expanded into the caller.
我们需要能够引入字面符号,可以供调用宏的开发人员使用。
We need a way to introduce literal symbols which can be used by the developer invoking the macro.
例如,假设您希望创建一个宏,它将一个变量引入调用宏的人可以使用的范围中。
For example, let's say that you wanted to create a macro that introduced a variable into a scope that could be used by the person calling the macro.
在解决方案的体系结构中,MicrosoftWord模板使用帐号来调用查询应用程序(该应用程序托管于后端的WebSphereApplicationServer)的宏。
In the solution architecture, a Microsoft Word template USES an account number to invoke a macro that queries an application hosted on a back-end WebSphere application Server.
defmulti宏指定在初次调用时要使用的分派函数,另外还有其他一些可选特性。
The defmulti macro specifies the dispatch function to use when first invoked and a few other optional features.
不过,lazy - seq宏确保了此函数将只在元素被访问的时候调用。
However, the lazy-seq macro ensures that the function will only be invoked as the elements are accessed.
Ruby在类层次上将这些方法调用引用为宏。
Ruby refers to these method invocations at the class level as macros.
为了让这个过程实现自动化,相应的程序会在文件的AutoOpen()宏中调用。
To make the process automatic, the corresponding procedures are called in the AutoOpen() macro of the document.
鉴于两者的优越性,提出一种新的编程方法,将图形编程和宏编程相结合,用图形化的方法形成对宏程序的调用指令。
Considering the advantages of the two ways, a new approach is proposed which combines them with each other by using graphs to form macro-call instruction.
如果没有为某个特殊的调用协定定义该宏,则该调用协定被禁止。例如。
If no such macro is defined for a particular calling convention, it is disabled. Example.
提出了一个基于系统调用宏的异常检测模型。
A new anomaly detection model based on system call macro was presented.
调用该宏计算出已知类型、已有一个域(成员)的指针的结构体的基地址。
Called to determine the base address of a structure whose type is known when the caller has a pointer to a field inside such a structure.
当用宏指令调用定义时,从宏定义的模型语句中产生汇编语言语句。
To produce assembler language statements from the model statements of a macro definition when the definition is called by a macroinstruction.
当用宏指令调用定义时,从宏定义的模型语句中产生汇编语言语句。
To produce assembler language statements from the model statements of a macro definition when the definition is called by a macroinstruction.
应用推荐