#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. VC环境下编译OpenSSL(仅仅是个示例,网上还有许多相关文章)

    VC环境OpenSSL安装以及编程过程 SSL就是Secure Sockets Layer,是一种安全套接字协议,详情请参考链接中的介绍. 配置过程中需要生成一些mak文件,这些生成代码用perl脚本 ...

  2. Fedora 17 下安装codeblocks

    Fedora 17 下安装codeblocks:        1.直接从yum源安装:        sudo yum install codeblocks        2.源码安装        ...

  3. HTML语言简单回顾

    简单复习一下html语言. html的基本结构如下: <html> <head> <title></title> </head> <b ...

  4. 日本IT工作有感

    不知不觉,在日本关西已经呆了快一个月了. 除了饮食有点不是非常习惯.其他感觉都还好. 日本这边的文化还是非常偏向project师的,project师的社会地位非常高,公司里面也没有国内所谓35岁的焦虑 ...

  5. Servlet的学习之ServletContext(2)

    本篇接上篇<Servlet的学习(五)>,继续从ServletContext对象中的方法进行学习,在这一篇中,我们重点关注的是ServletContext对象中对于在web工程中的资源文件 ...

  6. 【Demo 0009】表视图控制器

    本章学习要点:       1.  掌握表视图控制器结构;       2.  掌握表视图控制器的基本使用;       3.  掌握表视图表格的基本使用:       4.  掌握自定义表视图表格及 ...

  7. 理解 Thread.Sleep 函数

    我们可能经常会用到 Thread.Sleep 函数来使线程挂起一段时间.那么你有没有正确的理解这个函数的用法呢?思考下面这两个问题: 假设现在是 2008-4-7 12:00:00.000,如果我调用 ...

  8. html ui设计案例

    1.jquery特效:http://www.5icool.org 2. http://www.open-lib.com/Lib/1992.jsp

  9. 二、Cocos2dx概念介绍(游戏开发中不同的坐标系,cocos2dx锚点)

    注:ccp是cocos2dx中的一个宏定义,#define ccp(__X__,__Y__)CCPointMake((float)__X__, (float)__Y__),在此文章中表示坐标信息 1. ...

  10. BEGINNING SHAREPOINT&#174; 2013 DEVELOPMENT 第3章节--SharePoint 2013 开发者工具 站点设置

    BEGINNING SHAREPOINT® 2013 DEVELOPMENT 第3章节--SharePoint 2013 开发者工具 站点设置         你应该熟悉(假设还咩有)的SharePo ...