conversion wx2.8 to wx2.9 help Topic is solved

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
JPlaroche
Earned some good credits
Earned some good credits
Posts: 131
Joined: Fri Dec 09, 2005 4:58 pm
Contact:

conversion wx2.8 to wx2.9 help

Post by JPlaroche »

Code: Select all

bool wx_Date::Setdate(wxString V_date ) {

size_t ntest ;


    nyear  = wxAtoi(V_date.SubString(0, 3));
    nmonth = wxAtoi(V_date.SubString(4, 5));
    nday   = wxAtoi(V_date.SubString(6, 7));

 if ( nyear < 2000 ) return true;
 if ( nmonth == 0 || nmonth > 12 ) return true;
 if ( nday == 0 || nday > 31 ) return true;

tst->ParseDate( wxT(V_date.SubString(0, 3)+"/"+V_date.SubString(4, 5)+"/"+ "01"));
ntest = GetNumberOfDays(tst->GetMonth(), tst->GetYear());
if ( nday > ntest ) return true; // recherche si jour invalide exemple fevrier
now->ParseDate( wxT(V_date.SubString(0, 3)+"/"+V_date.SubString(4, 5)+"/"+ V_date.SubString(6, 7)));
     return false;
}

chg wx2.8 to 2.9


please exemple

probleme :

P:\wx_LIB\wxDate\wx_date.cpp||In member function 'bool wx_Date::Setdate(wxString)':|
P:\wx_LIB\wxDate\wx_date.cpp|54|error: 'LV_date' was not declared in this scope|


not prblm lib
gcc 4.5.2 and wx2.9.1
apprendre et developper en C++ des sub routine interfac� HIM et BD pour validation acquis
Jean-Pierre

project define DB descripteur idem IBM400
http://www.ombrebleu.com/wxsrc/src/
tan
wxWorld Domination!
wxWorld Domination!
Posts: 1471
Joined: Tue Nov 14, 2006 7:58 am
Location: Saint-Petersburg, Russia

Post by tan »

Hi,
just remove wxT(...) macros. Its usage in such context incorrectly anyway :)
OS: Windows XP Pro
Compiler: MSVC++ 7.1
wxWidgets: 2.8.10
JPlaroche
Earned some good credits
Earned some good credits
Posts: 131
Joined: Fri Dec 09, 2005 4:58 pm
Contact:

Post by JPlaroche »

tan wrote:Hi,
just remove wxT(...) macros. Its usage in such context incorrectly anyway :)

thank you :oops: :lol: :lol: :lol:
apprendre et developper en C++ des sub routine interfac� HIM et BD pour validation acquis
Jean-Pierre

project define DB descripteur idem IBM400
http://www.ombrebleu.com/wxsrc/src/
Auria
Site Admin
Site Admin
Posts: 6695
Joined: Thu Sep 28, 2006 12:23 am
Contact:

Post by Auria »

If your question is solved please close it by clicking on the "accept" button of the post that helped you most.

Thanks
"Keyboard not detected. Press F1 to continue"
-- Windows
Post Reply