WTL7.1 + ATL3.0 Error C2039: '

xiaoxiao2021-03-06  16

From Atlwinx.h

//// Dual Argument Helper Classes (for ATL 3.0)

#if (_TL_VER <0x0700)

Namespace ATL {

Class _u_rect {public: _U_Rect (LPRECT): M_LPRect (LPRECT) {} _U_Rect (Rect & RC): m_lprect (& rc) {} lprect m_lpRect;

Class _u_menuorid {public: _U_MENUORID (HMENU HMENU): m_hmenu (HMENU) {} _u_menuorid (uint NID): m_hmenu ((HMENU) longtohandle (NID)) {} hmenu m_hmenu;};

Class _u_stringorid {public: _u_stringorid (LPCTSTR LPSTRING): M_LPSTR (LPSTRING) {} _u_stringorid (uint NID): m_lpstr (MakeintResource (NID)) {} lpctstr m_lpstr;};

}; // Namespace ATL

#ENDIF / / (_ ATL_VER <0x0700)

It can be seen that there should be wtl :: _ u_stringorid, change it to ATL :: _ u_stringorid

转载请注明原文地址:https://www.9cbs.com/read-42342.html

New Post(0)