一开始我有:GetCurrentConsoleFont未在范围内声明,我做错了什么?
#include <sstream>
#include <iostream>
#include <stdio.h>
#include <iomanip>
#include <string>
#define _WIN32_WINNT 0x500 //tells that this is win 2000 or higher, without GetConsoleWindow would not work
#include <windows.h>
using namespace std;
int main() {
PCONSOLE_FONT_INFO lpConsoleCurrentFont;
GetCurrentConsoleFont(GetStdHandle(STD_OUTPUT_HANDLE), false, lpConsoleCurrentFont);
return 0;
}
和无证功能SetConsoleFont
的作品,但在编译GetCurrentConsoleFont
失败,称这是不是在这个范围内声明。
- 编辑:改为自持代码。
_Testcase_,请。 – 2012-01-14 23:57:02
我只是试了一下,它的工作 – 2012-01-14 23:58:29
好吧,我把它改为自持码,它工作吗? – rsk82 2012-01-15 00:04:09