没报错,就说是访问冲突
0x00007FF6DE3A2E77 处有未经处理的异常(在 Project10.exe 中): 0xC0000005: 读取位置 0x00000000000006B0 时发生访问冲突。
#include<iostream>
#include<stdio.h>
#include<graphics.h>
#include<easyx.h>
#include<conio.h>//使用getch
#include<mmsystem.h>//包含多媒体设备接口头文件
#pragma comment(lib,"winmm.lib")
using namespace std;
//播放音乐
void bgm()
{//取别名
PlaySound(L"C:\\Users\\L\\Desktop\\hhhhhh.wav", 0, SND_FILENAME | SND_ASYNC);
}
int main()
{//获取窗口句柄
HWND hnd = GetHWnd();
SetWindowText(hnd, L"LOVE");
//弹出窗口
MessageBox(NULL, L"恭喜中奖", L"提示", MB_OKCANCEL);
}
//愁死了