Print Page | Close Window

SetFirstDayOfWeek ASSERTs

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=12039
Printed Date: 23 June 2025 at 11:52am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: SetFirstDayOfWeek ASSERTs
Posted By: dennisV
Subject: SetFirstDayOfWeek ASSERTs
Date 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)



Replies:
Posted By: Oleg
Date Posted: 08 September 2008 at 3:28am
Hi,
How do you use SetFirstDayOfWeek ?


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: dennisV
Date 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)


Posted By: dennisV
Date 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)



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net