Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - CXTPPropertyGridItemDate Bug.
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTPPropertyGridItemDate Bug.

 Post Reply Post Reply
Author
Message
Italo View Drop Down
Groupie
Groupie


Joined: 10 December 2003
Location: United States
Status: Offline
Points: 83
Post Options Post Options   Thanks (0) Thanks(0)   Quote Italo Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Italo View Drop Down
Groupie
Groupie


Joined: 10 December 2003
Location: United States
Status: Offline
Points: 83
Post Options Post Options   Thanks (0) Thanks(0)   Quote Italo Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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 */
             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;

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
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Italo View Drop Down
Groupie
Groupie


Joined: 10 December 2003
Location: United States
Status: Offline
Points: 83
Post Options Post Options   Thanks (0) Thanks(0)   Quote Italo Quote  Post ReplyReply Direct Link To This Post Posted: 04 May 2006 at 11:30am

Thanks, I really appreciate you looking into this. So, what can we do?

 

Thanks again,

Italo

Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 04 May 2006 at 4:48pm

Hello, see the patch that we will use for next release.

2006-05-04_164750_Patch.zip

 

Thank you for this point. Need to write to Microsoft about this bug...

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.066 seconds.