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.
JPlaroche
Earned some good credits
Posts: 131 Joined: Fri Dec 09, 2005 4:58 pm
Contact:
Post
by JPlaroche » Sat Aug 21, 2010 3:01 am
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!
Posts: 1471 Joined: Tue Nov 14, 2006 7:58 am
Location: Saint-Petersburg, Russia
Post
by tan » Sat Aug 21, 2010 6:16 am
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
Posts: 131 Joined: Fri Dec 09, 2005 4:58 pm
Contact:
Post
by JPlaroche » Sat Aug 21, 2010 8:07 am
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
Posts: 6695 Joined: Thu Sep 28, 2006 12:23 am
Contact:
Post
by Auria » Sat Aug 21, 2010 2:14 pm
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