char s[100];
sprintf(s,"%d",GetLastError());
MessageBox(NULL, s , NULL , MB_OK );

GetLastErrorを確認するには上のような書き方ですか?