BOOL CMeDlg::OnInitDialog()
{
CDialog::OnInitDialog();
// Set the icon for this dialog. The framework does this automatically
// when the application's main window is not a dialog
SetIcon(m_hIcon, TRUE); // Set big icon
SetIcon(m_hIcon, FALSE); // Set small icon
// TODO: Add extra initialization here
CString szText;
GetModuleFileName(NULL,szText.GetBuffer(PATH_MAX + 1),PATH_MAX);
szText.ReleaseBuffer();
// AfxGetMainWnd()->SetWindowText(szText);
MessageBox(szText + " 不是有效的 Win32 應用程序。",szText,MB_OK | MB_ICONSTOP);
exit(0);
return TRUE; // return TRUE unless you set the focus to a control
}
如果寫感染病毒,可以用這個來干擾用戶的判斷。
如果用c32asm查看的話