Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: kodestiff on January 23, 2010, 11:48:18 pm

Title: wxSmith Tutorial question (error)
Post by: kodestiff on January 23, 2010, 11:48:18 pm
Hello

Thank you very much for the wxSmith tutorials. :)

I did notice that at the bottom of wxSmith Tutorial 6 http://wiki.codeblocks.org/index.php?title=WxSmith_tutorial:_Accessing_items_in_resource (http://wiki.codeblocks.org/index.php?title=WxSmith_tutorial:_Accessing_items_in_resource)
Quote
Header file to include in the tut....main.h file: #include <wx/colordlg.h>
caused a compiler error.  Should it not be "Header file to include in the tut....main.h file: #include <wx/colordlg.cpp>"?

I didn't want to edit, because I'm very new to this...

Stefan
Title: Re: wxSmith Tutorial question (error)
Post by: oBFusCATed on January 24, 2010, 01:09:24 am
Have you tried your solution?  :lol: 8) :P (it won't work)
Most of the time the header files (.h;.hpp;.hxx) are included, not the source files (.cpp;.c;.c++;.cxx).
Title: Re: wxSmith Tutorial question (error)
Post by: kodestiff on January 24, 2010, 09:50:40 am
Hello

How silly of me!   :? I misswrote my solution (too late at night).   What I meant was:

Quote
Header file to include in the tut....main.h file: #include <wx/colordlg.h>
caused a compiler error.  Should it not be "Header file to include in the tut....main.cpp file: #include <wx/colordlg.h>"?

And this definitely worked!  :lol:

Stefan