ACK! ARGH!
I was learning VC++ smoothly, quickly, and I was doing great... Then, I get to keyboard input and BAM! I'm stuck.
Here's what I do:
ClassWizard. Add Function, WM_KEYDOWN.
Edit WM_KEYDOWN's code. After the TODO,
char lsChar;
HCURSOR lhCursor;
lsChar = char(nChar);
if (lsChar == ‘A’)
{
lhCursor = AfxGetApp()->LoadStandardCursor(IDC_ARROW);
SetCursor(lhCursor);
}
Now, according to my nifty book, that SHOULD work, and to me, it looks like it should, BUT... I always get the danged "'A' : undeclared identifier" compilation error. =(
Or is this code just horribly wrong?
Everything works fine until I enter that into the KEYDOWN function.
Perhaps one of you can help, I'd greatly appreciate it!
I was learning VC++ smoothly, quickly, and I was doing great... Then, I get to keyboard input and BAM! I'm stuck.
Here's what I do:
ClassWizard. Add Function, WM_KEYDOWN.
Edit WM_KEYDOWN's code. After the TODO,
char lsChar;
HCURSOR lhCursor;
lsChar = char(nChar);
if (lsChar == ‘A’)
{
lhCursor = AfxGetApp()->LoadStandardCursor(IDC_ARROW);
SetCursor(lhCursor);
}
Now, according to my nifty book, that SHOULD work, and to me, it looks like it should, BUT... I always get the danged "'A' : undeclared identifier" compilation error. =(
Or is this code just horribly wrong?
Everything works fine until I enter that into the KEYDOWN function.
Perhaps one of you can help, I'd greatly appreciate it!