![]() |
CXTPPropertyGridItemDate Bug. |
Post Reply
|
| Author | |
Italo
Groupie
Joined: 10 December 2003 Location: United States Status: Offline Points: 83 |
Post Options
Thanks(0)
Quote Reply
Topic: CXTPPropertyGridItemDate Bug.Posted: 03 May 2006 at 11:12am |
|
Run PropertyGridD.exe; go to an item that uses CXTPPropertyGridItemDate; enter 01/01/0999. Can this please be fixed ASAP? Thanks, Italo |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 03 May 2006 at 3:55pm |
|
Hmm, I entered it and see 01/01/0999.. What version do you have?
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Italo
Groupie
Joined: 10 December 2003 Location: United States Status: Offline Points: 83 |
Post Options
Thanks(0)
Quote Reply
Posted: 03 May 2006 at 9:56pm |
|
I'm using version 10.1.1 When I enter 01/01/0999 and press enter I get an assert.
Thanks, Italo |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 04 May 2006 at 11:21am |
|
Hmmm. Seems it is bug of Visual Studio 2005... I guess you use it? IN Visual Stuidio 6, 2002, 2003 strftime.c looks: case('Y'): &n bsp; /* year w/ century */ in Visual Studio 2005 as: case('Y'): /* year w/ century */{ _VALIDATE_RETURN( ( timeptr->tm_year >=0 ), EINVAL, FALSE) temp = (((timeptr->tm_year/100)+19)*100) + (timeptr->tm_year%100); /* pass alternate_form as the no leading zeros flag */_store_num(temp, 4, string, left, alternate_form); break;} It is not right to compare with 0, because 0 is 1900th year. Will check what can be done. :( Seems Visual Studio 2005 just not support date earlier than 1900. |
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 04 May 2006 at 11:26am |
|
It can be easy reproduce with COleDateTime date; date.SetDate(1800, 1, 1); CString str = date.Format( "%m, %d, %Y");All Visual Studios except 2005 correctly parse it :(
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Italo
Groupie
Joined: 10 December 2003 Location: United States Status: Offline Points: 83 |
Post Options
Thanks(0)
Quote Reply
Posted: 04 May 2006 at 11:30am |
|
Thanks, I really appreciate you looking into this. So, what can we do?
Thanks again, Italo |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 04 May 2006 at 4:48pm |
|
Hello, see the patch that we will use for next release.
Thank you for this point. Need to write to Microsoft about this bug... |
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |