2007年8月28日 星期二

[C++] error C2011: '__POSITION' : 'struct' type redefinition

直接想使用 CAtlArray 的東西時, 請注意要在 .cpp 中加入

#include "stdafx.h"

否則你將在加入

#include
#include
class Packet : public CAtlArray{
...
};

之後, 遇到這個編譯錯誤.


by Jing

沒有留言:

張貼留言