Hi ,i just have a fhew code witc i do not understand clear.Can you make some explain.
It is category from C++ Win32 API.
typedef std::basic_string<TCHAR> ustring;
inline int ErrMsg(const ustring& ); What this mean ustring& ?
ustring classname=_T("SIMPLEWND");
ErrMsg(_T("Failed to register wnd class");
// And i did not typed (sorry )
inline int ErrMsg(const ustring& s)
{
return MessageBox(0,s.c_str(),_T("ERROR"),MB_OK|MB_ICONEXCLAMATION);
}
s.c_str() how it can be this ?
Thank you for your effort of reading.