Roger Sherman wrote:
I'm using CYGWIN g++. I'm having trouble making an API call the
WindowFromPoint function.
Here is my code.
FILE: t.cc
sounds like a C++, not C program.
#include <windows.h>
definitely non-standard header.
int main () {
POINT p;
undefined type POINT
p.x=200;
p.y=200;
HWND window_handle;
Undefined type HWND. declaring variable after executable code.
window_handle = WindowFromPoint(p);
Undeclared function.
return 0;
}
Here is the error message I'm getting:
C:\DOCUME~1\jeff\LOCALS~1\Temp\ccIIB5F0.o(.text+0x 22):t.cc: undefined
reference to 'WindowFromPoint@8'
Now we know you are using a C++ compiler. Off topic on c.l.c
Could someone please tell me
1)What this error means, specifically, and;
2)What I need to do to fix it
Get thee to a newsgroup where this is topical. The windows
contamination means c.l.c++ is not it. That, and the c++ code,
means c.l.c is not it. Maybe you should look for a group with the
word 'windows' in it.
--
Chuck F (cb********@yahoo.com) (cb********@worldnet.att.net)
Available for consulting/temporary embedded and systems.
<http://cbfalconer.home.att.net> USE worldnet address!