Original Post
I'm making an expandable engine that keeps giving me errors when I input a key code into it. those are obviously in separate .cpp files. However it keeps giving me an error that states: error C2664: 'GetKeys' : cannot convert parameter 1 from 'int' to 'UCHAR *'
void GetKeys(UCHAR* KeyState)
{
dinkeyboard->Acquire();
dinkeyboard->GetDeviceState(sizeof(UCHAR[256]), (LPVOID)keystate);
for(int Index = 0; Index < 256; Index++)
*(KeyState + Index) &= 0x80;
return;
}
if (GetKeys(DIK_ESCAPE) & 0x80)
{
PostMessage(hWnd, WM_DESTROY, 0, 0);
}