How to display DWORD in message box ?
i try to display DWORD to message box.
The problems are i don't use MFC and i cannot find afx.h file
i use embedded visual c++ , and develop WIN32 Application.
These are the codes
inline void GetCRC32::OnPrint(DWORD dwCrc32, DWORD dwErrorCode)
{
CString strResult ;
if(dwErrorCode == NO_ERROR)
{
strResult.Format(TEXT("0x%08x"),dwCrc32);
MessageBox(NULL, strResult, TEXT("CRC value"), MB_OK) ;
return;
}
strResult.Format(TEXT("0x%08x"), dwErrorCode) ;
MessageBox(NULL, strResult, TEXT("Error"), MB_OK) ;
}
and the header Files:
#include "stdafx.h"
#include "GetCRC32.h"
#include <string.h>
but it gives error :
error C2065: 'CString' : undeclared identifier
error C2146: syntax error : missing ';' before identifier 'strResult'
error C2065: 'strResult' : undeclared identifier
error C2228: left of '.Format' must have class/struct/union type
error C2228: left of '.Format' must have class/struct/union type
Can anyone tell me instead of using CString ?
i use custom SDK performed by my company instead of standard SDK.
Thanks

