User forums > Using Code::Blocks

A couple minor issues

(1/1)

yckx:
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.

yckx

mandrav:
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.

Yiannis.

Navigation

[0] Message Index

Go to full version