求助: LNK1104 无法打开文件WINDOWS.h
vs2015吧
全部回复
仅看楼主
level 1
#include "stdafx.h"
#include<stdio.h>
#include "windows.h"
#pragma comment(lib,"windows.h")
VOID SetCdaudio(BOOL bOpen)
{
if (bOpen)
{
mciSendString(L"set cdaudio door open", NULL, NULL, NULL);
}
else
mciSendString(L"set cdaudio door close", NULL, NULL, NULL);
}
int main()
{
SetCdaudio(true);
return 0;
}
不添加#pragma comment 会出现另外一种错误 没法通过编译。。 请问怎么办
2017年05月11日 10点05分 1
1