User forums > General (but related to Code::Blocks)
wxSmith Tutorial question (error)
(1/1)
kodestiff:
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
--- Quote ---Header file to include in the tut....main.h file: #include <wx/colordlg.h>
--- End quote ---
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
oBFusCATed:
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).
kodestiff:
--- Quote from: kodestiff on January 23, 2010, 11:48:18 pm ---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>
--- End quote ---
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
--- End quote ---
Navigation
[0] Message Index
Go to full version