1. 程式人生 > >longjing_g的專欄

longjing_g的專欄

atl裡面定義的建構函式居然沒有預設賦值為空,找了半天的bug,居然被隨機數玩了。

atltypes.inl

// CRect
ATLTYPES_INLINE CRect::CRect() throw()
    { /* random filled */ }

最可氣的是,預設找到的定義居然到了wtl裡面

atlmisc.h

class CRect : public RECT
{
public:
// Constructors
    CRect()
    {
        left = 0;
        top = 0;
        right = 0;
        bottom = 0;
    }

很是讓人鬱悶啊