RE: [Spam 7.81] Re: How to update both the Console and the GTKMM gui window after running other functions
- From: "Gavin Lambert" <gavinl compacsort com>
- To: "'Moh B.'" <mohgtkmm gmail com>, "'L. D. James'" <ljames apollo3 com>
- Cc: gtkmm-list gnome org
- Subject: RE: [Spam 7.81] Re: How to update both the Console and the GTKMM gui window after running other functions
- Date: Tue, 6 Aug 2013 13:23:36 +1200
Quoth Moh B:
You declared a void myprocess1(void); member function <== WITH void
parameter list BUT in the myLabel::myLabel() constructor you called the
myprocess1() WITHOUT any parameter list: This may cause problems to the
compiler:
protected:
Gtk::Label m_label;
string labeltext;
string newtext;
void myprocess1(); <== see here
caution required.
C++ defines () and (void) to be equivalent. That's only a problem in C code
(which defines these as distinct).
You should usually try to be consistent with using one or the other, though.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]