C++ Preprosessor import
#import Attributes
Provides links to attributes used with the #import directive.
Microsoft Specific
The following attributes are available to the #import directive.
|
Attribute |
Description |
|---|---|
|
Renames C++ reserved words by appending two underscores (__) to the variable name to resolve potential name conflicts. |
|
|
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. |
|
|
Specifies that the type library is written to the .tlh file with the attribute-generated code preserved. |
|
|
Excludes items from the type library header files being generated. |
|
|
Specifies a prefix to be used in naming high-level properties and methods. |
|
|
Specifies alternate prefixes for three property methods. |
|
|
Suppresses the generation of the .tlh header file (the primary header file). |
|
|
Disables automatic exclusion. |
|
|
Inserts its argument as source text into the type-library header. |
|
|
Tells the compiler to define and initialize GUID variables in old style, of the form LIBID_MyLib, CLSID_MyCoClass,IID_MyInterface, and DIID_MyDispInterface. |
|
|
Disables automatic exclusion. |
|
|
Changes the way the compiler generates wrapper functions for dual interface methods. |
|
|
Suppresses the generation of the .tli header, which contains the implementations of the wrapper member functions. |
|
|
Specifies that the namespace name is not generated by the compiler. |
|
|
Tells the compiler not to search the registry for type libraries. |
|
|
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. |
|
|
Suppresses the creation of smart pointers for all interfaces in the type library. |
|
|
Tells the compiler to generate low-level wrapper functions for dispinterface methods and properties that callIDispatch::Invoke and return the HRESULT error code. |
|
|
Suppresses the generation of error-handling wrapper functions and property (C++) declarations that use those wrapper functions. |
|
|
Specifies a different prefix to avoid name collisions. |
|
|
Disables the use of COM support classes in the high-level wrapper functions and forces the use of low-level data types instead. |
|
|
Specifies alternate prefixes for three property methods. |
|
|
Works around name collision problems. |
|
|
Renames the namespace that contains the contents of the type library. |
|
|
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. |
|
|
Allows for loading libraries other than the primary type library. |
END Microsoft Specific
C++ Preprosessor import的更多相关文章
- ES6模块import细节
写在前面,目前浏览器对ES6的import支持还不是很好,需要用bable转译. ES6引入外部模块分两种情况: 1.导入外部的变量或函数等: import {firstName, lastName, ...
- spring源码分析之@ImportSelector、@Import、ImportResource工作原理分析
1. @importSelector定义: /** * Interface to be implemented by types that determine which @{@link Config ...
- Python标准模块--import
1 模块简介 作为一个Python初学者,你首先要学会的知识就是如何引入其它模块或者包.但是,我发现有些开发者虽然使用Python很多年,依然不了解Python引入机制的灵活性.这篇文章,我们就会研究 ...
- css和@import区别用法
css和@import都是调用外部样式表的方法. 一.用法 (1)link: <link rel="stylesheet" type="text/css" ...
- 从爬取湖北某高校hub教务系统课表浅谈Java信息抓取的实现 —— import java.*;
原创文章与源码,如果转载请注明来源. 开发环境:Myeclipse,依赖包:apache-httpclient . Jsoup.base64 一.概述 整个系统用Java开发.我们现在要做的是类似于超 ...
- python from __future__ import division
1.在python2 中导入未来的支持的语言特征中division(精确除法),即from __future__ import division ,当我们在程序中没有导入该特征时,"/&qu ...
- python学习笔记-import utils报错
今天遇到一个坑爹的问题,查找了半天原因,终于解决了,在此特地记录一下. 运行环境:Windows eclipse 我在eclipse中配置了python的运行环境,在eclipse中编写python代 ...
- ImportError: cannot import name '_imagingtk'
问题描述 使用tkinter画pillow生成的图片时,在tkinter中抛出此异常. 解决方案 pip install -I --no-cache-dir Pillow 更新pillow 重启解决一 ...
- import renumber.py in pymol
cp renumber.py /usr/local/lib/python2.7/dist-packages/pymol import renumber or run /path/to/renumber ...
随机推荐
- 基于visual Studio2013解决C语言竞赛题之1080填运算符
题目 解决代码及点评 /************************************************************************/ /* ...
- 国际化之MessageFormat与占位符
如果一个字符串文本中包含了多个与国际化相关的数据,可以使用MessageFormat类对这些数据进行批量处理. 例如: 在2016年1月9日的时候,一场台风导致了500间房屋的摧毁和¥1000000元 ...
- linux下的php网站放到Windows服务器IIS下.htaccess文件伪静态规则转换
此办法只适合于linux下的php网站放到Windows服务器IIS下 , 网站除了主页面正常以外 子页面全部出现404错误 这里子页面出现404 错误是说明伪静态没有开启 什么是.htac ...
- Substrings 第37届ACM/ICPC 杭州赛区现场赛C题(hdu 4455)
http://acm.hdu.edu.cn/showproblem.php?pid=4455 https://icpcarchive.ecs.baylor.edu/index.php?option=c ...
- Git 图解剖析(转)
git中文件内容并没有真正存储在索引(.git/index)或者提交对象中,而是以blob的形式分别存储在数据库中(.git/objects),并用SHA-1值来校验. 索引文件用识别码列出相关的bl ...
- 微微信.NET:开源的ASP.NET微信公众号应用平台
题记: 平时喜欢使用 C# 编程.近半年玩微信公众平台,看到一些微信的应用系统大多是PHP.Python的,于是就有想法做一套开放的 C# ASP.NET的微信应用系统. 微微信.NET 基于ASP ...
- 小米手机usb共享网络mac
今天.我想去FQgoogle,mac在墙上,不便于使用.甚至只是用Android手机wifi,打开墙软件.然后usb分享到mac.然后mac互联网. 在谈到一些复杂.其实,关键一,小米手机usb共享, ...
- pc机进入android的shell
一直都知道自己非常死板,刚刚再一次验证了.. 下载下来android开发必备的工具之后,就按部就班的一步步的来了.没想过这些工具有没有其它用处,更有甚者,在刚開始接触android的时候.居然不知道自 ...
- Lisp的永恒之道 好文
http://www.cnblogs.com/weidagang2046/archive/2012/06/03/tao_of_lisp.html
- DOM4J解析XML文档
Tip:DOM4J解析XML文档 Dom4j是一个简单.灵活的开放源代码的库.Dom4j是由早期开发JDOM的人分离出来而后独立开发的.与JDOM不同的是,dom4j使用接口和抽象基类,虽然Dom4j ...