http://msdn.microsoft.com/en-us/library/windows/desktop/ms684969(v=vs.85).aspx 錯誤C2664: 'ReadConsoleOutputCharacterW':無法從 '字符*' 轉換參數2 'LPWSTR'ReadConsoleOutputCharacter錯誤使用第二個參數
#include <windows.h>
#include <stdio.h>
int main(void)
{
HANDLE hOut;
char letter;
char letters[5];
DWORD numberRead;
COORD where_;
SetConsoleTitle(L"Hello!");
hOut = GetStdHandle(STD_OUTPUT_HANDLE);
where_.X = 0;
where_.Y = 0;
ReadConsoleOutputCharacter(hOut, &letter, 1, where_, &numberRead);
printf("letter at (0,0) is %c letter", letter);
return 0;
}
thx,你是對的 – gameboy