Anyone know how to resolve this error?
My compiler (Borland) doesn't recocognize this function:
(yes I know, Pelles, I'm getting around to it)
COLORREF SetDCBrushColor(
__in HDC hdc,
__in COLORREF crColor
);
Others have had this problem.
Anyone know how to resolve this error?
My compiler (Borland) doesn't recocognize this function:
(yes I know, Pelles, I'm getting around to it)
COLORREF SetDCBrushColor(
__in HDC hdc,
__in COLORREF crColor
);
Others have had this problem.
Does the compiler not recognize it or the linker?
If you look on MSDN, you'll see the minimum operating system required (Win2K--this might be a problem for Borland if it's defining the windows version itself and the compiler is sufficiently old), the header required if it's the compiler that's annoyed (windows.h), and the library you need to link with if it's the linker that's annoyed (gdi32).
It's a compiler error.
I just noticed I can't find it in the Borland help reference. Maybe too old.
I had a minor problem getting Pelles C running so I wanted to finish up this project with Borland C++.
Also the Borland "easywin" feature is quite useful. But I will be moving to Pelles.
Any simple way to get it working though, in the mean time?
I don't know enough about Borland's build system to know what libraries it's using by default. You can prototype the function to stop the compiler from complaining. Then it's up to the linker to find the function at build time -- MSDN says it is in gdi32, so you'll have to include that library (if possible) when linking. (ETA: And by "if possible" I mean the 32 stands for 32-bit I would imagine, so if you're only making 16-bit executables you may be at a loss.)
Probably the best way is to get Pelles C working... Pelle maintains forums HERE Membership is free. You should post about your problems installing Pelles C there...
Then once you get Pelles C working, your problem will solve itself...