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

SetFirstDayOfWeek ASSERTs

 Post Reply Post Reply
Author
Message
dennisV View Drop Down
Senior Member
Senior Member
Avatar

Joined: 07 October 2004
Location: Australia
Status: Offline
Points: 242
Post Options Post Options   Thanks (0) Thanks(0)   Quote dennisV Quote  Post ReplyReply Direct Link To This Post Topic: SetFirstDayOfWeek ASSERTs
    Posted: 01 September 2008 at 10:05am
When I try to use the SetFirstDayOfWeek it asserts on me - it does this in the sample provided as well (Calendar Demo). I've got v12.0.1. The assert is here:


AFX_INLINE int CXTPCalendarUtils::GetDayOfWeekIndex(int nDayOfWeekMask) {
    for (int i = 1; i <= 7; i++)
    {
        int nTestMask = 1 << (i-1);
        if (nTestMask == nDayOfWeekMask){
            return i;
        }
    }
    ASSERT(FALSE);
    return 0;
}


Do you know what could be wrong?

Thanks,

   Dennis
// W7 64 Ultimate SP1
// VS 2008
// CodeJock 16.2.3 (MFC)
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


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: 08 September 2008 at 3:28am
Hi,
How do you use SetFirstDayOfWeek ?
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
dennisV View Drop Down
Senior Member
Senior Member
Avatar

Joined: 07 October 2004
Location: Australia
Status: Offline
Points: 242
Post Options Post Options   Thanks (0) Thanks(0)   Quote dennisV Quote  Post ReplyReply Direct Link To This Post Posted: 08 September 2008 at 4:16am
It's in your sample - CalendarDemo. Just set the view to week view and select starting day as Saturday.
// W7 64 Ultimate SP1
// VS 2008
// CodeJock 16.2.3 (MFC)
Back to Top
dennisV View Drop Down
Senior Member
Senior Member
Avatar

Joined: 07 October 2004
Location: Australia
Status: Offline
Points: 242
Post Options Post Options   Thanks (0) Thanks(0)   Quote dennisV Quote  Post ReplyReply Direct Link To This Post Posted: 08 December 2008 at 4:05pm
This bug is still in 12.1.1  Right in the calendar sample - select Friday, for example as your starting day of the week and see the assert...
// W7 64 Ultimate SP1
// VS 2008
// CodeJock 16.2.3 (MFC)
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.