阅读:1122回复:4
[b]#pragma token-squence[/b]语法求助#pragma warning(disable:4214) // bitfield nonstd 请教#pragma在这里是什么意思喔 它的语法好像是这样的: #pragma token-squence什么意思 |
|
|
沙发#
发布于:2002-11-11 17:30
还有:#pragma alloc_text(PAGE, PnPAddDevice) :mad: :(
|
|
|
板凳#
发布于:2002-11-11 17:35
给分裸
Platform SDK: Windows Management Instrumentation #pragma The pragma command is very similar in theory to a command-line switch; however, you do not need to re-enter a pragma command each time you compile a MOF file. The following example illustrates pragma command syntax: #pragma [command] You usually place a pragma command at the beginning of a MOF file. However, you can place some commands, such as the pragma namespace command, in the body of your MOF code. The following example shows pragma preprocessor commands that indicate to the MOF compiler that it must place classes and instances in the root\\cimv2 namespace and compile the file in which the commands are included during repository recovery: #pragma autorecover #pragma namespace (\"\\\\\\\\.\\\\root\\\\cimv2\") The following table shows the available #pragma commands. #pragma command Description amendment Directs the MOF compiler to separate a MOF file into language-neutral and language-specific versions. autorecover Adds this MOF file to the list of files compiled during repository recovery. The list of autorecover MOF files is stored in this registry key: HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\WBEM\\CIMOM\\autorecover mofs classflags Controls the way classes are created or updated depending on the flag or flags specified. deleteclass Deletes an existing class and its instances from the repository. deleteinstance Deletes an existing instance of a class from the repository. instanceflags Controls the way instances are created or updated depending on the flag or flags specified. namespace Requests that the compiler load the MOF file into the namespace specified as namespacepath. If both the MOF compiler -n namespace switch and the #pragma namespace command are used, the latter takes priority. Platform SDK Release: November 2001 What did you think of this topic? Let us know. Order a Platform SDK CD Online (U.S/Canada) (International) |
|
|
地板#
发布于:2002-11-11 17:38
其实,你自己到MSDN中一搜索就行了。
|
|
|
地下室#
发布于:2002-11-11 18:00
:D :D :D :D :D :D
嗨,搜了几次才出来。谢谢二位先 |
|
|