User forums => Using Code::Blocks => Topic started by: yckx on June 25, 2005, 02:35:13 am

Title: A couple minor issues
Post by: yckx on June 25, 2005, 02:35:13 am
I've recently switched to CodeBlocks from Dev-C++, and I like it alot.  But I'm experiencing a bug in my project, and I can't figure out where it is.  So I thought someone here might be able to help.

The main window of my App is not using the title given in CreateWindowEx(), and it's not using the icons from the WNDCLASSEX structure.  Instead, the title is blank and the icons are the default Windows application icons. Switching to the older (non-Ex forms) did not help.  Has anybody else seen this behavior?  Does anyone know how to fix it?

I'm using the same code I was in Dev-C++, and had no problems with this in that, so I can't figure out what's wrong.

Title: A couple minor issues
Post by: mandrav on June 25, 2005, 09:44:34 am
Maybe your resource file is not being compiled? There was a small bug in the dev-cpp importer that, in some cases, wouldn't setup the resource file for compiling. This bug's been fixed in CVS.
Right-click your resource file (.rc) and select "Properties".
Make sure both "Compile" and "Link" are checked and that the compiler variable is set to WINDRES.