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查看的话