#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. zTree实现地市县三级级联Action类

    zTree实现地市县三级级联Action类 ProvinceAction.java: /** * @Title:ProvinceAction.java * @Package:com.gwtjs.str ...

  2. kernel hexdump分析

    驱动调试中,很多时候是二进制的,这个时候hexdump就是个非常有用的工具了. 不要再自己去实现类似的功能,kernel代码里面就有: 参考: kernel/lib/hexdump.c // 0Xxx ...

  3. JAVA之成员变量初始化

    java中成员变量的初始化,如果是普通成员变量可以赋初值,如果没赋初值,则系统会自动赋初值.而对于局部变量必须手动赋初值. package MyText2; public class MyText1 ...

  4. sublime搜索和替换--正则

    Search and Replace Sublime Text features two main types of search: Search - Single File Search - Mul ...

  5. struts2由&lt;s:tree&gt;要么dtree小工具 建立树

    一个 .<s:tree>方法: 1.引入新的标签: <%@ taglib prefix="sd" uri="/struts-dojo-tags" ...

  6. freemarker的TemplateExceptionHandler使用

    系统使用freemarker作为页面展示层,为了解决系统统一异常的问题.于是配置了struts2的统一异常解决的方法(这个网上资料非常多,大家能够查看),但是发现freemarker出现异常后,str ...

  7. 控制台程序的参数解析类库 CommandLine

    C#控制台程序的参数解析类库 CommandLine简单使用说明 前言 C#开发的控制台程序,默认接收string[] args参数.如果有多个参数需要输入时,可以按照顺序依次输入:但如果有些参数不是 ...

  8. VC 实现视图区背景颜色渐变填充

    void CSTest1View::OnDraw(CDC* pDC) { CSTest1Doc* pDoc = GetDocument(); ASSERT_VALID(pDoc); // TODO:  ...

  9. win32 字体变换与窗口同大同小

    #include <windows.h> #include "res/resource.h" LRESULT CALLBACK WinProc(HWND hwnd, U ...

  10. PHP JSON_ENCODE 不转义中文汉字的方法

    ios程序中不识别读取到的JSON数据中 \u开头的数据. PHP 生成JSON的时候,必须将汉字不转义为 \u开头的UNICODE数据. 网上非常多,可是事实上都是错误的,正确的方法是在json_e ...