不是有效的 win32應用程序---惡搞

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


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章