#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

最新文章

  1. SQL Server 数据库的维护(二)__触发器
  2. FineUI第四天---PageManage的概述
  3. jade编译乱码问题
  4. HIHO线段树(成段)
  5. IOS上传图片
  6. 【转】Javascript 面向对象编程(一):封装
  7. mvc给html扩展方法:
  8. jquery插件的写法
  9. js中this的指向总结
  10. pytorch识别CIFAR10:训练ResNet-34(微调网络,准确率提升到85%)
  11. ESP8266-Arduino杀手?
  12. django基于存储在前端的token用户认证
  13. English trip EM2-LP-5A Food Teacher:Lamb
  14. ASP.NET调用cmd命令提示符拒绝访问解决方案
  15. SOC 与 ARM
  16. ElasticSearch.net NEST批量创建修改删除索引完整示例
  17. tmp_table_size ---> 优化 MYSQL 经验总结
  18. 用ELK搭建简单的日志收集分析系统【转】
  19. PASCAL 的开源工具
  20. HDU3910(数学期望题,题目难懂)

热门文章

  1. Windows Azure入门教学系列 (三):创建第一个Worker Role程序
  2. Last_IO_Errno: 1236 Last_IO_Error: Got fatal error 1236 from master when reading data from binary lo
  3. shell 调用mysql 存储过程判断真假
  4. linux中段错误的处理
  5. CppCMS URL使用
  6. MySQL filesort优化案例一则
  7. Java中@Deprecated、@SupressWarning、@Override的作用
  8. Html.Partial("")与Html.RenderPartial("")区别
  9. HDU 1556 Color the Ball 线段树 题解
  10. Swift - 计算次方(2的N次方,2的随机次方)