Author Topic: wxSmith Tutorial question (error)  (Read 3090 times)

Offline kodestiff

  • Multiple posting newcomer
  • *
  • Posts: 13
wxSmith Tutorial question (error)
« 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
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

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: wxSmith Tutorial question (error)
« Reply #1 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).
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline kodestiff

  • Multiple posting newcomer
  • *
  • Posts: 13
Re: wxSmith Tutorial question (error)
« Reply #2 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