Different between wxMSW242 and wxGTK242?
Posted: Tue Dec 14, 2004 3:55 am
Recently I tried to compile a program in Linux enviroment-wxGTK 242, which I created with ans tested with wxMSW 2.4.2. I found that there are some different between these 2 Port:
My code:
Under wxMSW, it can compile without any error reported. But in wxGTK, it
complaint that is an error at this line of code:
So I got to change my code to this:
Is this a normal case? Which one is correct?
Thanks
--------
Sirius
wxMSW 2.4.2
WinXP, VC++ 6.0
wxGTK 2.4.2
Debian, gcc 3.3.3
My code:
Code: Select all
ShowErr(wxString("Price or Deposit is invalid"));
...
...
void myDialog::ShowErr(wxString& strErr) {
wxMessageDialog dlgMsg(this, strErr, "caption", wxOK|wxICON_EXCLAMATION);
dlgMsg.ShowModal();
}
Under wxMSW, it can compile without any error reported. But in wxGTK, it
complaint that is an error at this line of code:
Code: Select all
ShowErr(wxString("Price or Deposit is invalid"));
Code: Select all
wxString strErr;
strErr = "Price or Deposit is invalid";
ShowErr(strErr);
Is this a normal case? Which one is correct?
Thanks
--------
Sirius
wxMSW 2.4.2
WinXP, VC++ 6.0
wxGTK 2.4.2
Debian, gcc 3.3.3