Search found 37 matches

by rocco.g
Tue Mar 28, 2006 2:02 pm
Forum: wxDev-C++
Topic: "Cannot open include file 'wx/wx.h' No such file...&
Replies: 13
Views: 30397

I think u can try to install this:
https://sourceforge.net/project/showfil ... p_id=95606


i hope it will help u!
by rocco.g
Tue Mar 28, 2006 10:26 am
Forum: wxDev-C++
Topic: Overload operator+
Replies: 16
Views: 3929

i edited my previous post by adding some new code...


i hope u can help me with this last "little" problem...
by rocco.g
Mon Mar 27, 2006 10:43 pm
Forum: wxDev-C++
Topic: Overload operator+
Replies: 16
Views: 3929

after an entire afternoon... i read with attention ur post... and i write this working code: class MyStringClass: public wxString { public: template <class T> bool From_String(T &aValue, const std::string &aStr); template <class T> std::string To_String(T aValue); MyStringClass &operator...
by rocco.g
Mon Mar 27, 2006 6:14 pm
Forum: wxDev-C++
Topic: Overload operator+
Replies: 16
Views: 3929

but... i have to add also: void OnButtonAdd(wxCommandEvent& event); in this new class? but is it possibile? this function is linked to a wxButton in the frame... is it correct for the moment? class MyStringClass: public wxString { public: template <class T> int operator+( int i); template <class...
by rocco.g
Mon Mar 27, 2006 5:03 pm
Forum: wxDev-C++
Topic: Overload operator+
Replies: 16
Views: 3929

thanks to everyone for ur answsers... after 18 hours of work on my code without sleep :( i did this: class Frame_Principale : public wxFrame { private: DECLARE_EVENT_TABLE(); Frame_Principale &operator+(const Frame_Principale &a); std::string numero1; std::string numero2; double b, c; ... .....
by rocco.g
Mon Mar 27, 2006 2:04 pm
Forum: wxDev-C++
Topic: Overload operator+
Replies: 16
Views: 3929

i know how to overload an operator in c++, but i'm not able to understand how to do this with wxwidgets... (i'm a stupid because i should do a program only with c++ and not with wxwidgets, time elapsed and now i can't write again another prog only in c++, so i would like to finish this by adding thi...
by rocco.g
Sun Mar 26, 2006 11:22 pm
Forum: wxDev-C++
Topic: Overload operator+
Replies: 16
Views: 3929

damn! :( i'm sorry i'm not able to explain what i want to do in English :( i try to explain better what i want to do... i realized that u have reason: You are trying to declare an operator + on a frame !!! What does adding 2 frames mean? it has no sense... i don't want to do this! :( the problem is ...
by rocco.g
Sun Mar 26, 2006 9:30 pm
Forum: wxDev-C++
Topic: Overload operator+
Replies: 16
Views: 3929

thanks a lot for ur answer! yes, the code is in a frame/window dialog... i did this: class Project1Frm : public wxFrame { private: DECLARE_EVENT_TABLE(); Project1Frm &operator+(Project1Frm &a); public: .... .... Project1Frm &Project1Frm::operator+(Project1Frm &a) { return *this; } de...
by rocco.g
Sun Mar 26, 2006 4:38 pm
Forum: wxDev-C++
Topic: Overload operator+
Replies: 16
Views: 3929

i tried with: wxString operator+(const wxString& x, wxChar y){ wxString s = x; s += y+2; return s; } but it says: C:/Dev-Cpp/lib/libwxmsw26.a(monolib_string.o):string.cpp:(.text+0x2be0): multiple definition of `operator+(wxString const&, char)' Project1Frm.obj:Project1Frm.cpp:(.text+0x5c60):...
by rocco.g
Sun Mar 26, 2006 3:38 pm
Forum: wxDev-C++
Topic: Overload operator+
Replies: 16
Views: 3929

eh... because i need to overload an operator for my project... :(


i'm able to do this in c++ without wxwidgets, but with these libraries i 'm not able to understand what i have to do... :(
by rocco.g
Sun Mar 26, 2006 3:01 pm
Forum: wxDev-C++
Topic: Overload operator+
Replies: 16
Views: 3929

i'm trying... but i'm not able to overload the operator...

sometimes devcpp says me that i have to use a class to do this...

is it possible?

i tried to return an int type...


but it still don't work well...
by rocco.g
Sun Mar 26, 2006 12:59 pm
Forum: C++ Development
Topic: Send E-mails with C++ and Devcpp
Replies: 21
Views: 7046

i solved by reading the makefile...

now it works very well, thanks!
by rocco.g
Sun Mar 26, 2006 1:21 am
Forum: C++ Development
Topic: Send E-mails with C++ and Devcpp
Replies: 21
Views: 7046

i included these files on my project: #include <wx/wxsmtp.h> #include <wx/wxsmtp_version.h> #include <wx/wxbase64.h> #include <wx/wxcmdprot.h> #include <wx/wxemail.h> #include <wx/wxmime.h> #include <wx/wxstates.h> and i use this code: wxSMTP *smtp = new wxSMTP(NULL); smtp->SetHost("smtpserver....
by rocco.g
Sat Mar 25, 2006 11:41 pm
Forum: wxDev-C++
Topic: Overload operator+
Replies: 16
Views: 3929

Overload operator+

Hi! I use my code to sum some numbers and to display the result in a wxTextCtrl, i use a template to manage different kind of data... and i sum the values with: std::string S1; S1 = Text1->GetValue(); std::string S2; S2 = Text2->GetValue(); int I1, I2; if(FromString(I1, S1) && FromString(I2,...
by rocco.g
Sat Mar 25, 2006 10:29 am
Forum: wxDev-C++
Topic: [SOLVED] printing the content of wxTextCtrl
Replies: 9
Views: 3213

ah, i'm sorry! but i saw the label "accetable" only for the last post and not for the first... next time i'll do more attention! i'm sorry! :( EDIT: i modified the title of the topic by adding "SOLVED", i hope this will help users to understand that this topic has been solved...