zoukankan      html  css  js  c++  java
  • Visual Studio 2008项目系统属性中的宏

    Visual Studio 2008

    更新:2007 年 11 月

    本节讨论如何使用 Visual C++ 项目系统中来自脚本和外接程序中的对象模型。

    宏几乎可以存在于您从对象模型中的任何对象获得的任何字符串属性中。以下为此规则的例外情况:

    当属性返回的值可能包含宏时,请使用范围最适合的属性容器确定它的值。属性容器按范围由窄到宽的顺序排列如下:

    对于有关文件配置的文件或工具,属性容器将是所需配置的 VCFileConfiguration 对象。对于项目,属性容器应是所需配置的 VCConfiguration 对象。请使用范围最窄的属性容器的对象,因为所用对象的范围越宽,可以正确扩展的宏就越少。

    换句话说,当您从 VCFileConfiguration 移到 VCConfiguration 对象求值时,就会失去所有 $(Input*) 宏的上下文。当您从 VCConfiguration 移到 VCProjectEngine 或 VCPlatform 对象时,对于不在系统范围内的宏就会失去上下文。

    下表中的示例演示如何对各种上下文中的宏求值。当,

    • 文件位于 c:\myidls\stuff.idl 中时

    • 项目位于 c:\Soln\Proj\Proj.vcproj 中时

    • 解决方案位于 c:\Soln\Soln.sln 中时

    • 平台为 Win32 时

    • 中间目录为 DebugInt 时

    • 输出目录为 c:\MyOutputs 时

    • 调试配置时

    • 输出名称为 Game.exe 时

    文件配置   

    ProjectConfig

    VCProjectEngine 和 VCPlatform

    InputDir

    c:\myidls\

    c:\Soln\Proj

    不适用

    InputName

    stuff

    Proj

    不适用

    InputPath

    c:\myidls\stuff.idl

    c:\Soln\Proj\Proj.vcproj

    不适用

    InputFileName

    stuff.idl

    Proj.vcproj

    不适用

    InputExt

    .idl

    .vcproj

    不适用

    IntDir

    DebugInt

    DebugInt

    不适用

    OutDir

    c:\MyOutputs

    c:\MyOutputs

    不适用

    ProjectDir

    c:\Soln\Proj\

    c:\Soln\Proj\

    不适用

    ProjectName

    Proj

    Proj

    不适用

    ProjectExt

    .vcproj

    .vcproj

    不适用

    TargetDir

    c:\MyOutputs\

    c:\MyOutputs\

    不适用

    TargetPath

    c:\MyOutputs\Game.exe

    c:\MyOutputs\Game.exe

    不适用

    TargetName

    Game

    Game

    不适用

    TargetFileName

    Game.exe

    Game.exe

    不适用

    TargetExt

    .exe

    .exe

    不适用

    ConfigurationName

    调试

    调试

    不适用

    RemoteMachine

    在项目级别设置

    在项目级别设置

    不适用

    PlatformName

    Win32

    Win32

    不适用

    SolutionDir

    c:\Soln

    c:\Soln

    c:\Soln

    SolutionName

    Soln

    Soln

    Soln

    SolutionPath

    c:\Soln\Soln.sln

    c:\Soln\Soln.sln

    c:\Soln\Soln.sln

    SolutionFileName

    Soln.sln

    Soln.sln

    Soln.sln

    SolutionExt

    .sln

    .sln

    .sln

    VCInstallDir

    <VC install dir>\

    <VC install dir>\

    <VC install dir>\

    VSInstallDir

    <VC install dir>\

    <VC install dir>\

    <VC install dir>\

    FrameworkDir

    <COM+ dir>\

    <COM+ dir>\

    <COM+ dir>\

    FrameworkVersion

    开发环境使用的公共语言运行库版本

    开发环境使用的公共语言运行库版本

    开发环境使用的公共语言运行库版本

    DevEnvDir

    devenv.exe 的位置

    devenv.exe 的位置

    devenv.exe 的位置

    环境宏

    根据环境

    根据环境

    根据环境

    请注意,您为计算器的源选择的内容会显著改变求值方式,尤其是与文件名密切相关的项。


  • 相关阅读:
    #import &lt;/usr/include/objc/objc-class.h&gt; not such file or directory问题的解决方法
    关于二进制补码
    DirectSound的应用
    Qt on Android: http下载与Json解析
    双绞线的制作,T568A线序,T568B线序
    Java设计模式之从[暗黑破坏神存档点]分析备忘录(Memento)模式
    linux 系统升级中的一些配置
    malloc函数具体解释
    老鸟的Python新手教程
    ubuntu12.04 安装配置jdk1.7
  • 原文地址:https://www.cnblogs.com/marryZhan/p/2497572.html
Copyright © 2011-2022 走看看