<<< Split from Read Pixel >>>
Hi, I am having problems in this area.
I understand about the handle and the device context.
My problem is not with the syntax, but with the linking.
I get the message [Linker error] undefined reference to 'GetPixel@12'
-I am using Dev-C++ 18.104.22.168 compiler.
-I have included the headers:
<windows.h> and/or <wingdi.h>
I had a look at the msdn website at the GetPixel function, and i see that i require the files:
I downloaded the libraries of the latest SDK and added the file gdi32.lib to my dev-c++\lib file.
I could not find the file gdi32.dll among the downloaded files, however I did
locate several instances when I searched the Hard Drive:
-one in c:\Windows\system32.
-many others in C:\Windows\winsxs
one of which I coppied and added to my Dev-C++\lib file.
I still Get the error when trying to compile: [Linker error] undefined reference to 'GetPixel@12'.
-Is the GetPixel function compatible with my compiler?
-Have I added the dll and lib files in the correct location?
-Do the files rely on other files which also need to be added?
Thank you for any help you are able to provide.