我刚开始学ATL,从MSDN上找了一个例子.
SAMPLE: AtlEvnt.exe Creates ATL Sinks Using IDispEventImpl
Q194179
按它说的做了.但总出下面这个编译错误,请那位高手指点一下.
--------------------構成: ATLEVNT - Win32 Unicode Release MinDependency--------------------
コンパイル中...
ATLEVNT_i.c
D:\techsample\AtlEvnt\ATLEVNT_i.c(51) : fatal error C1010: プリコンパイル済みヘッダーの検索中に予期しない EOF を検出しました。
cl.exe の実行エラーATLEVNT.exe - エラー 1、警告 0

解决方案 »

  1.   

    ATLEVNT_i.c
    D:\techsample\AtlEvnt\ATLEVNT_i.c(51) : fatal error C1010: 实在不明白怎么会事,那位高人有时间,请麻烦试一下吧.
      

  2.   

    In the project setting select the file and disable its using precompiled
    headers (for all configuration). This is in the Compiler tab.
      

  3.   

    你的意思是说,PROJECT|SET->ATLEVNT_i.c->然后呢,没看明白.
    我是初学者,请说得仔细些.
      

  4.   

    你没有使用Debug进行编译吗?如果没有,你试一下,然后在找问题的原因。
      

  5.   

    多谢kingzai(studying C#) , 问题解决了.