#import Attributes

Provides links to attributes used with the #import directive.

Microsoft Specific

The following attributes are available to the #import directive.

 

Attribute

Description

auto_rename

Renames C++ reserved words by appending two underscores (__) to the variable name to resolve potential name conflicts.

auto_search

Specifies that, when a type library is referenced with #import and itself references another type library, the compiler can do an implicit #import for the other type library.

embedded_idl

Specifies that the type library is written to the .tlh file with the attribute-generated code preserved.

exclude (#import)

Excludes items from the type library header files being generated.

high_method_prefix

Specifies a prefix to be used in naming high-level properties and methods.

high_property_prefixes

Specifies alternate prefixes for three property methods.

implementation_only

Suppresses the generation of the .tlh header file (the primary header file).

include()

Disables automatic exclusion.

inject_statement

Inserts its argument as source text into the type-library header.

named_guids

Tells the compiler to define and initialize GUID variables in old style, of the form LIBID_MyLibCLSID_MyCoClass,IID_MyInterface, and DIID_MyDispInterface.

no_auto_exclude

Disables automatic exclusion.

no_dual_interfaces

Changes the way the compiler generates wrapper functions for dual interface methods.

no_implementation

Suppresses the generation of the .tli header, which contains the implementations of the wrapper member functions.

no_namespace

Specifies that the namespace name is not generated by the compiler.

no_registry

Tells the compiler not to search the registry for type libraries.

no_search_namespace

Has the same functionality as the no_namespace attribute but is used on type libraries that you use the #import directive with the auto_search attribute.

no_smart_pointers

Suppresses the creation of smart pointers for all interfaces in the type library.

raw_dispinterfaces

Tells the compiler to generate low-level wrapper functions for dispinterface methods and properties that callIDispatch::Invoke and return the HRESULT error code.

raw_interfaces_only

Suppresses the generation of error-handling wrapper functions and property (C++) declarations that use those wrapper functions.

raw_method_prefix

Specifies a different prefix to avoid name collisions.

raw_native_types

Disables the use of COM support classes in the high-level wrapper functions and forces the use of low-level data types instead.

raw_property_prefixes

Specifies alternate prefixes for three property methods.

rename (#import)

Works around name collision problems.

rename_namespace

Renames the namespace that contains the contents of the type library.

rename_search_namespace

Has the same functionality as the rename_namespaceattribute but is used on type libraries that you use the #import directive with the auto_search attribute.

tlbid

Allows for loading libraries other than the primary type library.

END Microsoft Specific

C++ Preprosessor import的更多相关文章

  1. ES6模块import细节

    写在前面,目前浏览器对ES6的import支持还不是很好,需要用bable转译. ES6引入外部模块分两种情况: 1.导入外部的变量或函数等: import {firstName, lastName, ...

  2. spring源码分析之@ImportSelector、@Import、ImportResource工作原理分析

    1. @importSelector定义: /** * Interface to be implemented by types that determine which @{@link Config ...

  3. Python标准模块--import

    1 模块简介 作为一个Python初学者,你首先要学会的知识就是如何引入其它模块或者包.但是,我发现有些开发者虽然使用Python很多年,依然不了解Python引入机制的灵活性.这篇文章,我们就会研究 ...

  4. css和@import区别用法

    css和@import都是调用外部样式表的方法. 一.用法 (1)link: <link rel="stylesheet" type="text/css" ...

  5. 从爬取湖北某高校hub教务系统课表浅谈Java信息抓取的实现 —— import java.*;

    原创文章与源码,如果转载请注明来源. 开发环境:Myeclipse,依赖包:apache-httpclient . Jsoup.base64 一.概述 整个系统用Java开发.我们现在要做的是类似于超 ...

  6. python from __future__ import division

    1.在python2 中导入未来的支持的语言特征中division(精确除法),即from __future__ import division ,当我们在程序中没有导入该特征时,"/&qu ...

  7. python学习笔记-import utils报错

    今天遇到一个坑爹的问题,查找了半天原因,终于解决了,在此特地记录一下. 运行环境:Windows eclipse 我在eclipse中配置了python的运行环境,在eclipse中编写python代 ...

  8. ImportError: cannot import name '_imagingtk'

    问题描述 使用tkinter画pillow生成的图片时,在tkinter中抛出此异常. 解决方案 pip install -I --no-cache-dir Pillow 更新pillow 重启解决一 ...

  9. import renumber.py in pymol

    cp renumber.py /usr/local/lib/python2.7/dist-packages/pymol import renumber or run /path/to/renumber ...

随机推荐

  1. ASM - 条件判断

    技术交流,DH讲解. 正式之前,我们看看寄存器和CPU的标志位: OD中的截图,下方的CPAZSTDO就是标志位. Delphi的FPU窗口,右边一列就是标志位.为什么要给大家看标志位呢?因为ASM中 ...

  2. PHP学习之-Mongodb在Windows下安装及配置

    Mongodb在Windows下安装及配置 1.下载 下载地址:http://www.mongodb.org/ 建议下载zip版本. 2.安装 下载windows版本安装就和普通的软件一样,直接下一步 ...

  3. Spring boot jar 后台运行

    start(){ now=`date "+%Y%m%d%H%M%S"` exec java -Xms256m -Xmx512m -jar /alidata/server/webap ...

  4. hdu4707 Pet

    Pet Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submissio ...

  5. Flex上传文件

    前几天写了一篇jsp页面利用ajaxFileUpload上传文件.如今把flex上传页面也分享出来: 前台页面 <?xml version="1.0" encoding=&q ...

  6. vscode编写插件

    vscode编写插件详细过程 前言 之前编写了一个vscode插件用vscode写博客和发布,然后有园友要求写一篇来介绍如何开发一个vscode扩展插件,或者说介绍开发这个插件的过程.然而文章还没有写 ...

  7. 积累的VC编程小技巧之框架窗口及其他

    1.修改主窗口风格 AppWizard生成的应用程序框架的主窗口具有缺省的窗口风格,比如在窗口标题条中自动添加文档名.窗口是叠加型的.可改变窗口大小等.要修改窗口的缺省风格,需要重载CWnd::Pre ...

  8. IIS部署asp.net报404错误

    1).所建网站->(右键)权限->"ASP.NET计算机帐户"是否已添加.     2).所建网站->(右键)属性->ASP.NET选项卡->版本是否 ...

  9. 自己定义UITabBarController

    网上大多的自己定义TabBar都是继承View的,项目中要用到path+Tabbat这种话(path用的MMDrawerController这个框架),继承View的Tabbar是无法满足条件的(不是 ...

  10. CF 17B Hierarchy

    Nick's company employed n people. Now Nick needs to build a tree hierarchy of «supervisor-surbodinat ...