On Wednesday 30 July 2003 4:16 pm, Martin Vermeer wrote: > I did this: > > > --- ControlNote.C > void note_gui_tokens(vector<string> & ids, vector<string> & gui_names) > { > char const * const ids_[] = {"note", "comment", "greyedout"}; > size_t const ids_size = sizeof(ids_) / sizeof(char *); > char const * const gui_names_[] = > {_("Note").c_str(), _("comment").c_str(), _("greyedout").c_str() }; > size_t const gui_names_size = sizeof(gui_names_) / sizeof(char *); > ids = vector<string>(ids_, ids_ + ids_size); > gui_names = vector<string>(gui_names_, gui_names_ + > gui_names_size); > } > --- ControlNote.h > /// > void note_gui_tokens(vector<string> &, vector<string> &); > > --- FormNote.C > void FormNote::build() > { > dialog_.reset(build_note(this)); > > ControlNote::note_gui_tokens(ids_, gui_names_);
And just because it is declared/defined in ControlNote.h,C, why do you think it is a member of the ControlNote class? dialog_.reset(build_note(this)); note_gui_tokens(ids_, gui_names_); should work, assuming that vector<string> ids_; vector<string> gui_names_; exist... > What's the problem? What constructor should I use? > > Baffled as always, > > Martin