看不明白。
一般来说,define 都是下列这种形式:#define aaaaa bbbbb即将 aaaaa 以 bbbbb 来代替。但是单独的
#define aaaaa 是什么意思呢?就象下面的 #define _CRTIMP 一样,表示什么呢?
/* Define _CRTIMP */#ifndef _CRTIMP
#ifdef  _DLL
#define _CRTIMP __declspec(dllimport)
#else   /* ndef _DLL */
#define _CRTIMP
#endif  /* _DLL */
#endif  /* _CRTIMP */

解决方案 »

  1.   

    #define aaaaa
    那么比如说
    int aaaaa var = 0;那么与处理后就是
    int var = 0;了。
    如果
    #define aaaaa const
    准备编译
    int aaaaa var = 0;那么与处理后就是
    int const var = 0;了。
      

  2.   


    #define _CRTIMP
    宏定义语句,
    实际上可以用它来控制预编译处理。
    使用配对的预编译语句
    #ifdef  
    #endif
    或者
    #ifndef
    #endif
    来达到此目的。#define _CRTIMP
    宏定义语句,实际上此时_CRTIMP的值为1.
      

  3.   

    定义一个标志。
    通常用来防止重复编译。
    配合#ifdef来使用。
      

  4.   

    单独定义宏,可以当开关使用

    #define AA
    ifndef AA
    #endififdef AA
    #endif
      

  5.   

    __declspec(dllimport) 
    从一个动态库中导入该函数 补充一下,呵呵