Print Page | Close Window

Problem defining event handlers

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Calendar
Forum Description: Topics Related to Codejock Calendar
URL: http://forum.codejock.com/forum_posts.asp?TID=7364
Printed Date: 10 May 2024 at 4:42am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Problem defining event handlers
Posted By: davidbeane
Subject: Problem defining event handlers
Date Posted: 12 June 2007 at 4:56pm
Using 10.4.2

In my view header:

CXTPCalendarControl mCalendar;
DECLARE_XTP_SINK(CInspectorOnlyView, m_Sink);
void OnEvent_Calendar(XTP_NOTIFY_CODE Event, WPARAM wParam, LPARAM lParam);

In my view's OnInitialUpdate():

CXTPNotifyConnection* pCalendarConn = mCalendar.GetConnection();
if(pCalendarConn) {       
        m_Sink.Advise(pCalendarConn, XTP_NC_CALENDARLBUTTONDBLCLICK, &CInspectorOnlyView::OnEvent_Calendar);
}

In the code for the Advise function, in CMapNotifyCodeToHandler::SetAt(), the following ASSERT fires:
ASSERT(sizeof(T_pfHandler) == sizeof(void*));

I ignore it, then when my OnEvent_Calendar() function is called, all my view class members, such as mCalendar, are porked.

Any ideas?



Replies:
Posted By: davidbeane
Date Posted: 18 June 2007 at 3:49pm
This issue is fixed in 11.1.3.



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