现在的位置: 首页 > 综合 > 正文

不是有效的 win32应用程序—恶搞

2017年10月13日 ⁄ 综合 ⁄ 共 557字 ⁄ 字号 评论关闭
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查看的话

【上篇】
【下篇】

抱歉!评论已关闭.