|
/////////////////////////////////////////////////////////////////////////////
// StdAfx.cpp : source file that includes just the standard includes
/////////////////////////////////////////////////////////////////////////////
#include "StdAfx.h"
#if defined(_UNICODE)
#pragma comment(linker, "/entry:wWinMainCRTStartup")
#endif // _UNICODE
/////////////////////////////////////////////////////////////////////////////
// _M - Shows an int nVal with AfxMessageBox
/////////////////////////////////////////////////////////////////////////////
void _M(int nVal) {
TCHAR szVal[MAXITEMTEXT];
swprintf(szVal, _T("%d"), nVal);
AfxMessageBox(szVal);
}
/////////////////////////////////////////////////////////////////////////////
// _M - Shows an CString sStr with AfxMessageBox
/////////////////////////////////////////////////////////////////////////////
void _M(CString sStr) {
TCHAR szVal[MAXITEMTEXT];
swprintf(szVal, _T("%s"), sStr);
AfxMessageBox(szVal);
}
/////////////////////////////////////////////////////////////////////////////
// _M - Shows an TCHAR *szStr with AfxMessageBox
/////////////////////////////////////////////////////////////////////////////
void _M(TCHAR *szStr) {
TCHAR szVal[MAXITEMTEXT];
swprintf(szVal, _T("%s"), szStr);
AfxMessageBox(szVal);
}
/*
/////////////////////////////////////////////////////////////////////////////
// _M - Shows an wchar_t *szStr with AfxMessageBox
/////////////////////////////////////////////////////////////////////////////
void _M(wchar_t *szStr) {
TCHAR szVal[MAXITEMTEXT];
swprintf(szVal, _T("%s"), szStr);
AfxMessageBox(szVal);
}
*/
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.