You are still making the same mistake pointed out by MrViggy. Use POINT not LPPOINT.
Get Microsoft Visual C++ Express here or CodeBlocks here.
Get STLFilt here to radically improve error messages when using the STL.
Get these two can't live without C++ libraries, BOOST here and Loki here.
Check your code with the Comeau Compiler and FlexeLint for standards compliance and some subtle errors.
Always use [code] code tags [/code] to make code legible and preserve indentation.
Do not ask for help writing destructive software such as viruses, gamehacks, keyloggers and the suchlike.
ok I'll try point again, maybe it will work. I tried it before and it said POINT doesn't name a type
That because there is NO type "POINT" in windows.h
Tip: if you're using Visual Studio, hold your mouse over the text LPPOINT and it will bring a box out that states that LPVOID is a typedef for a pointer to a struct named tagPOINT. LP is Hungarian notation for long pointer which means it only points to a tagPOINT.
tagePOINT pos; // or LPPOINT pos = new tagPOINT;
GetCursorPos(&Pos); // or GetCursorPos(Pos);
cout << Pos.y;
Get Microsoft Visual C++ Express here or CodeBlocks here.
Get STLFilt here to radically improve error messages when using the STL.
Get these two can't live without C++ libraries, BOOST here and Loki here.
Check your code with the Comeau Compiler and FlexeLint for standards compliance and some subtle errors.
Always use [code] code tags [/code] to make code legible and preserve indentation.
Do not ask for help writing destructive software such as viruses, gamehacks, keyloggers and the suchlike.
Bookmarks