RE: Need help with code
It works in VC++ because that automatically links to gdi32.lib - it's a default. And that #pragma is specific to C++ as well - other preprocessors will have different ways of linking.
I see Dev-C++ uses a port of GCC. In that case, you'll need to find the command line and add '-lgdi32' to it.
|