Print Page | Close Window

2006 Q2 Warnings

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=4331
Printed Date: 16 June 2024 at 9:38pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: 2006 Q2 Warnings
Posted By: Italo
Subject: 2006 Q2 Warnings
Date Posted: 03 June 2006 at 2:45pm

I have a project that used to compile without any warnings using XTP 2006 Q1. I'm getting the following warinings with 2006 Q2. Can this please be fixed ASAP?

Thanks
Italo


------ Build started: Project: NtnCore, Configuration: Debug Win32 ------
Compiling...
stdafx.cpp
Automatically linking with ToolkitPro1020vc80D.dll
c:\program files\microsoft visual studio 8\vc\atlmfc\include\afxtempl.h(1547) : warning C4244: 'argument' : conversion from 'UINT_PTR' to 'UINT', possible loss of data
        c:\program files\microsoft visual studio 8\vc\atlmfc\include\afxtempl.h(1546) : while compiling class template member function 'CMap<KEY,ARG_KEY,VALUE,ARG_VALUE>::CAssoc *CMap<KEY,ARG_KEY,VALUE,ARG_VALUE>::GetAssocAt(ARG_KEY ,UINT &,UINT &) const'
        with
        [
             KEY=UINT_PTR,
             ARG_KEY=UINT_PTR,
             VALUE=CXTPCalendarController::CXTPDayInfoCache *,
             ARG_VALUE=CXTPCalendarController::CXTPDayInfoCache *
        ]
        c:\program files\microsoft visual studio 8\vc\atlmfc\include\afxtempl.h(1599) : while compiling class template member function 'CXTPCalendarController::CXTPDayInfoCache &CMap<KEY,ARG_KEY,VALUE,ARG_VALUE>::operator [](ARG_KEY)'
        with
        [
             KEY=UINT_PTR,
             ARG_KEY=UINT_PTR,
             VALUE=CXTPCalendarController::CXTPDayInfoCache *,
             ARG_VALUE=CXTPCalendarController::CXTPDayInfoCache *
        ]
        c:\program files\microsoft visual studio 8\vc\atlmfc\include\afxtempl.h(1358) : while compiling class template member function 'void CMap<KEY,ARG_KEY,VALUE,ARG_VALUE>::SetAt(ARG_KEY,ARG_V ALUE)'
        with
        [
             KEY=UINT_PTR,
             ARG_KEY=UINT_PTR,
             VALUE=CXTPCalendarController::CXTPDayInfoCache *,
             ARG_VALUE=CXTPCalendarController::CXTPDayInfoCache *
        ]
        c:\program files\microsoft visual studio 8\vc\atlmfc\include\afxtempl.h(1482) : while compiling class template member function 'CMap<KEY,ARG_KEY,VALUE,ARG_VALUE>::~CMap(void)'
        with
        [
             KEY=UINT_PTR,
             ARG_KEY=UINT_PTR,
             VALUE=CXTPCalendarController::CXTPDayInfoCache *,
             ARG_VALUE=CXTPCalendarController::CXTPDayInfoCache *
        ]
        c:\program files\codejock software\mfc\xtreme toolkitpro 2006 q2\source\calendar\xtpcalendarcontroller.h(424) : see reference to class template instantiation 'CMap<KEY,ARG_KEY,VALUE,ARG_VALUE>' being compiled
        with
        [
             KEY=UINT_PTR,
             ARG_KEY=UINT_PTR,
             VALUE=CXTPCalendarController::CXTPDayInfoCache *,
             ARG_VALUE=CXTPCalendarController::CXTPDayInfoCache *
        ]
Compiling...
NtnCore.cpp
c:\program files\microsoft visual studio 8\vc\atlmfc\include\afxtempl.h(1547) : warning C4244: 'argument' : conversion from 'UINT_PTR' to 'UINT', possible loss of data
        c:\program files\microsoft visual studio 8\vc\atlmfc\include\afxtempl.h(1546) : while compiling class template member function 'CMap<KEY,ARG_KEY,VALUE,ARG_VALUE>::CAssoc *CMap<KEY,ARG_KEY,VALUE,ARG_VALUE>::GetAssocAt(ARG_KEY ,UINT &,UINT &) const'
        with
        [
             KEY=UINT_PTR,
             ARG_KEY=UINT_PTR,
             VALUE=CXTPCalendarController::CXTPDayInfoCache *,
             ARG_VALUE=CXTPCalendarController::CXTPDayInfoCache *
        ]
        c:\program files\microsoft visual studio 8\vc\atlmfc\include\afxtempl.h(1599) : while compiling class template member function 'CXTPCalendarController::CXTPDayInfoCache &CMap<KEY,ARG_KEY,VALUE,ARG_VALUE>::operator [](ARG_KEY)'
        with
        [
             KEY=UINT_PTR,
             ARG_KEY=UINT_PTR,
             VALUE=CXTPCalendarController::CXTPDayInfoCache *,
             ARG_VALUE=CXTPCalendarController::CXTPDayInfoCache *
        ]
        c:\program files\microsoft visual studio 8\vc\atlmfc\include\afxtempl.h(1358) : while compiling class template member function 'void CMap<KEY,ARG_KEY,VALUE,ARG_VALUE>::SetAt(ARG_KEY,ARG_V ALUE)'
        with
        [
             KEY=UINT_PTR,
             ARG_KEY=UINT_PTR,
             VALUE=CXTPCalendarController::CXTPDayInfoCache *,
             ARG_VALUE=CXTPCalendarController::CXTPDayInfoCache *
        ]
        c:\program files\microsoft visual studio 8\vc\atlmfc\include\afxtempl.h(1482) : while compiling class template member function 'CMap<KEY,ARG_KEY,VALUE,ARG_VALUE>::~CMap(void)'
        with
        [
             KEY=UINT_PTR,
             ARG_KEY=UINT_PTR,
             VALUE=CXTPCalendarController::CXTPDayInfoCache *,
             ARG_VALUE=CXTPCalendarController::CXTPDayInfoCache *
        ]
        c:\program files\codejock software\mfc\xtreme toolkitpro 2006 q2\source\calendar\xtpcalendarcontroller.h(424) : see reference to class template instantiation 'CMap<KEY,ARG_KEY,VALUE,ARG_VALUE>' being compiled
        with
        [
             KEY=UINT_PTR,
             ARG_KEY=UINT_PTR,
             VALUE=CXTPCalendarController::CXTPDayInfoCache *,
             ARG_VALUE=CXTPCalendarController::CXTPDayInfoCache *
        ]
NtnException.cpp
c:\program files\microsoft visual studio 8\vc\atlmfc\include\afxtempl.h(1547) : warning C4244: 'argument' : conversion from 'UINT_PTR' to 'UINT', possible loss of data
        c:\program files\microsoft visual studio 8\vc\atlmfc\include\afxtempl.h(1546) : while compiling class template member function 'CMap<KEY,ARG_KEY,VALUE,ARG_VALUE>::CAssoc *CMap<KEY,ARG_KEY,VALUE,ARG_VALUE>::GetAssocAt(ARG_KEY ,UINT &,UINT &) const'
        with
        [
             KEY=UINT_PTR,
             ARG_KEY=UINT_PTR,
             VALUE=CXTPCalendarController::CXTPDayInfoCache *,
             ARG_VALUE=CXTPCalendarController::CXTPDayInfoCache *
        ]
        c:\program files\microsoft visual studio 8\vc\atlmfc\include\afxtempl.h(1599) : while compiling class template member function 'CXTPCalendarController::CXTPDayInfoCache &CMap<KEY,ARG_KEY,VALUE,ARG_VALUE>::operator [](ARG_KEY)'
        with
        [
             KEY=UINT_PTR,
             ARG_KEY=UINT_PTR,
             VALUE=CXTPCalendarController::CXTPDayInfoCache *,
             ARG_VALUE=CXTPCalendarController::CXTPDayInfoCache *
        ]
        c:\program files\microsoft visual studio 8\vc\atlmfc\include\afxtempl.h(1358) : while compiling class template member function 'void CMap<KEY,ARG_KEY,VALUE,ARG_VALUE>::SetAt(ARG_KEY,ARG_V ALUE)'
        with
        [
             KEY=UINT_PTR,
             ARG_KEY=UINT_PTR,
             VALUE=CXTPCalendarController::CXTPDayInfoCache *,
             ARG_VALUE=CXTPCalendarController::CXTPDayInfoCache *
        ]
        c:\program files\microsoft visual studio 8\vc\atlmfc\include\afxtempl.h(1482) : while compiling class template member function 'CMap<KEY,ARG_KEY,VALUE,ARG_VALUE>::~CMap(void)'
        with
        [
             KEY=UINT_PTR,
             ARG_KEY=UINT_PTR,
             VALUE=CXTPCalendarController::CXTPDayInfoCache *,
             ARG_VALUE=CXTPCalendarController::CXTPDayInfoCache *
        ]
        c:\program files\codejock software\mfc\xtreme toolkitpro 2006 q2\source\calendar\xtpcalendarcontroller.h(424) : see reference to class template instantiation 'CMap<KEY,ARG_KEY,VALUE,ARG_VALUE>' being compiled
        with
        [
             KEY=UINT_PTR,
             ARG_KEY=UINT_PTR,
             VALUE=CXTPCalendarController::CXTPDayInfoCache *,
             ARG_VALUE=CXTPCalendarController::CXTPDayInfoCache *
        ]
NtnFunctions.cpp
c:\program files\microsoft visual studio 8\vc\atlmfc\include\afxtempl.h(1547) : warning C4244: 'argument' : conversion from 'UINT_PTR' to 'UINT', possible loss of data
        c:\program files\microsoft visual studio 8\vc\atlmfc\include\afxtempl.h(1546) : while compiling class template member function 'CMap<KEY,ARG_KEY,VALUE,ARG_VALUE>::CAssoc *CMap<KEY,ARG_KEY,VALUE,ARG_VALUE>::GetAssocAt(ARG_KEY ,UINT &,UINT &) const'
        with
        [
             KEY=UINT_PTR,
             ARG_KEY=UINT_PTR,
             VALUE=CXTPCalendarController::CXTPDayInfoCache *,
             ARG_VALUE=CXTPCalendarController::CXTPDayInfoCache *
        ]
        c:\program files\microsoft visual studio 8\vc\atlmfc\include\afxtempl.h(1599) : while compiling class template member function 'CXTPCalendarController::CXTPDayInfoCache &CMap<KEY,ARG_KEY,VALUE,ARG_VALUE>::operator [](ARG_KEY)'
        with
        [
             KEY=UINT_PTR,
             ARG_KEY=UINT_PTR,
             VALUE=CXTPCalendarController::CXTPDayInfoCache *,
             ARG_VALUE=CXTPCalendarController::CXTPDayInfoCache *
        ]
        c:\program files\microsoft visual studio 8\vc\atlmfc\include\afxtempl.h(1358) : while compiling class template member function 'void CMap<KEY,ARG_KEY,VALUE,ARG_VALUE>::SetAt(ARG_KEY,ARG_V ALUE)'
        with
        [
             KEY=UINT_PTR,
             ARG_KEY=UINT_PTR,
             VALUE=CXTPCalendarController::CXTPDayInfoCache *,
             ARG_VALUE=CXTPCalendarController::CXTPDayInfoCache *
        ]
        c:\program files\microsoft visual studio 8\vc\atlmfc\include\afxtempl.h(1482) : while compiling class template member function 'CMap<KEY,ARG_KEY,VALUE,ARG_VALUE>::~CMap(void)'
        with
        [
             KEY=UINT_PTR,
             ARG_KEY=UINT_PTR,
             VALUE=CXTPCalendarController::CXTPDayInfoCache *,
             ARG_VALUE=CXTPCalendarController::CXTPDayInfoCache *
        ]
        c:\program files\codejock software\mfc\xtreme toolkitpro 2006 q2\source\calendar\xtpcalendarcontroller.h(424) : see reference to class template instantiation 'CMap<KEY,ARG_KEY,VALUE,ARG_VALUE>' being compiled
        with
        [
             KEY=UINT_PTR,
             ARG_KEY=UINT_PTR,
             VALUE=CXTPCalendarController::CXTPDayInfoCache *,
             ARG_VALUE=CXTPCalendarController::CXTPDayInfoCache *
        ]
NtnIndentedTextWriter.cpp
c:\program files\microsoft visual studio 8\vc\atlmfc\include\afxtempl.h(1547) : warning C4244: 'argument' : conversion from 'UINT_PTR' to 'UINT', possible loss of data
        c:\program files\microsoft visual studio 8\vc\atlmfc\include\afxtempl.h(1546) : while compiling class template member function 'CMap<KEY,ARG_KEY,VALUE,ARG_VALUE>::CAssoc *CMap<KEY,ARG_KEY,VALUE,ARG_VALUE>::GetAssocAt(ARG_KEY ,UINT &,UINT &) const'
        with
        [
             KEY=UINT_PTR,
             ARG_KEY=UINT_PTR,
             VALUE=CXTPCalendarController::CXTPDayInfoCache *,
             ARG_VALUE=CXTPCalendarController::CXTPDayInfoCache *
        ]
        c:\program files\microsoft visual studio 8\vc\atlmfc\include\afxtempl.h(1599) : while compiling class template member function 'CXTPCalendarController::CXTPDayInfoCache &CMap<KEY,ARG_KEY,VALUE,ARG_VALUE>::operator [](ARG_KEY)'
        with
        [
             KEY=UINT_PTR,
             ARG_KEY=UINT_PTR,
             VALUE=CXTPCalendarController::CXTPDayInfoCache *,
             ARG_VALUE=CXTPCalendarController::CXTPDayInfoCache *
        ]
        c:\program files\microsoft visual studio 8\vc\atlmfc\include\afxtempl.h(1358) : while compiling class template member function 'void CMap<KEY,ARG_KEY,VALUE,ARG_VALUE>::SetAt(ARG_KEY,ARG_V ALUE)'
        with
        [
             KEY=UINT_PTR,
             ARG_KEY=UINT_PTR,
             VALUE=CXTPCalendarController::CXTPDayInfoCache *,
             ARG_VALUE=CXTPCalendarController::CXTPDayInfoCache *
        ]
        c:\program files\microsoft visual studio 8\vc\atlmfc\include\afxtempl.h(1482) : while compiling class template member function 'CMap<KEY,ARG_KEY,VALUE,ARG_VALUE>::~CMap(void)'
        with
        [
             KEY=UINT_PTR,
             ARG_KEY=UINT_PTR,
             VALUE=CXTPCalendarController::CXTPDayInfoCache *,
             ARG_VALUE=CXTPCalendarController::CXTPDayInfoCache *
        ]
        c:\program files\codejock software\mfc\xtreme toolkitpro 2006 q2\source\calendar\xtpcalendarcontroller.h(424) : see reference to class template instantiation 'CMap<KEY,ARG_KEY,VALUE,ARG_VALUE>' being compiled
        with
        [
             KEY=UINT_PTR,
             ARG_KEY=UINT_PTR,
             VALUE=CXTPCalendarController::CXTPDayInfoCache *,
             ARG_VALUE=CXTPCalendarController::CXTPDayInfoCache *
        ]
NtnMemoryStream.cpp
c:\program files\microsoft visual studio 8\vc\atlmfc\include\afxtempl.h(1547) : warning C4244: 'argument' : conversion from 'UINT_PTR' to 'UINT', possible loss of data
        c:\program files\microsoft visual studio 8\vc\atlmfc\include\afxtempl.h(1546) : while compiling class template member function 'CMap<KEY,ARG_KEY,VALUE,ARG_VALUE>::CAssoc *CMap<KEY,ARG_KEY,VALUE,ARG_VALUE>::GetAssocAt(ARG_KEY ,UINT &,UINT &) const'
        with
        [
             KEY=UINT_PTR,
             ARG_KEY=UINT_PTR,
             VALUE=CXTPCalendarController::CXTPDayInfoCache *,
             ARG_VALUE=CXTPCalendarController::CXTPDayInfoCache *
        ]
        c:\program files\microsoft visual studio 8\vc\atlmfc\include\afxtempl.h(1599) : while compiling class template member function 'CXTPCalendarController::CXTPDayInfoCache &CMap<KEY,ARG_KEY,VALUE,ARG_VALUE>::operator [](ARG_KEY)'
        with
        [
             KEY=UINT_PTR,
             ARG_KEY=UINT_PTR,
             VALUE=CXTPCalendarController::CXTPDayInfoCache *,
             ARG_VALUE=CXTPCalendarController::CXTPDayInfoCache *
        ]
        c:\program files\microsoft visual studio 8\vc\atlmfc\include\afxtempl.h(1358) : while compiling class template member function 'void CMap<KEY,ARG_KEY,VALUE,ARG_VALUE>::SetAt(ARG_KEY,ARG_V ALUE)'
        with
        [
             KEY=UINT_PTR,
             ARG_KEY=UINT_PTR,
             VALUE=CXTPCalendarController::CXTPDayInfoCache *,
             ARG_VALUE=CXTPCalendarController::CXTPDayInfoCache *
        ]
        c:\program files\microsoft visual studio 8\vc\atlmfc\include\afxtempl.h(1482) : while compiling class template member function 'CMap<KEY,ARG_KEY,VALUE,ARG_VALUE>::~CMap(void)'
        with
        [
             KEY=UINT_PTR,
             ARG_KEY=UINT_PTR,
             VALUE=CXTPCalendarController::CXTPDayInfoCache *,
             ARG_VALUE=CXTPCalendarController::CXTPDayInfoCache *
        ]
        c:\program files\codejock software\mfc\xtreme toolkitpro 2006 q2\source\calendar\xtpcalendarcontroller.h(424) : see reference to class template instantiation 'CMap<KEY,ARG_KEY,VALUE,ARG_VALUE>' being compiled
        with
        [
             KEY=UINT_PTR,
             ARG_KEY=UINT_PTR,
             VALUE=CXTPCalendarController::CXTPDayInfoCache *,
             ARG_VALUE=CXTPCalendarController::CXTPDayInfoCache *
        ]
NtnStream.cpp
c:\program files\microsoft visual studio 8\vc\atlmfc\include\afxtempl.h(1547) : warning C4244: 'argument' : conversion from 'UINT_PTR' to 'UINT', possible loss of data
        c:\program files\microsoft visual studio 8\vc\atlmfc\include\afxtempl.h(1546) : while compiling class template member function 'CMap<KEY,ARG_KEY,VALUE,ARG_VALUE>::CAssoc *CMap<KEY,ARG_KEY,VALUE,ARG_VALUE>::GetAssocAt(ARG_KEY ,UINT &,UINT &) const'
        with
        [
             KEY=UINT_PTR,
             ARG_KEY=UINT_PTR,
             VALUE=CXTPCalendarController::CXTPDayInfoCache *,
             ARG_VALUE=CXTPCalendarController::CXTPDayInfoCache *
        ]
        c:\program files\microsoft visual studio 8\vc\atlmfc\include\afxtempl.h(1599) : while compiling class template member function 'CXTPCalendarController::CXTPDayInfoCache &CMap<KEY,ARG_KEY,VALUE,ARG_VALUE>::operator [](ARG_KEY)'
        with
        [
             KEY=UINT_PTR,
             ARG_KEY=UINT_PTR,
             VALUE=CXTPCalendarController::CXTPDayInfoCache *,
             ARG_VALUE=CXTPCalendarController::CXTPDayInfoCache *
        ]
        c:\program files\microsoft visual studio 8\vc\atlmfc\include\afxtempl.h(1358) : while compiling class template member function 'void CMap<KEY,ARG_KEY,VALUE,ARG_VALUE>::SetAt(ARG_KEY,ARG_V ALUE)'
        with
        [
             KEY=UINT_PTR,
             ARG_KEY=UINT_PTR,
             VALUE=CXTPCalendarController::CXTPDayInfoCache *,
             ARG_VALUE=CXTPCalendarController::CXTPDayInfoCache *
        ]
        c:\program files\microsoft visual studio 8\vc\atlmfc\include\afxtempl.h(1482) : while compiling class template member function 'CMap<KEY,ARG_KEY,VALUE,ARG_VALUE>::~CMap(void)'
        with
        [
             KEY=UINT_PTR,
             ARG_KEY=UINT_PTR,
             VALUE=CXTPCalendarController::CXTPDayInfoCache *,
             ARG_VALUE=CXTPCalendarController::CXTPDayInfoCache *
        ]
        c:\program files\codejock software\mfc\xtreme toolkitpro 2006 q2\source\calendar\xtpcalendarcontroller.h(424) : see reference to class template instantiation 'CMap<KEY,ARG_KEY,VALUE,ARG_VALUE>' being compiled
        with
        [
             KEY=UINT_PTR,
             ARG_KEY=UINT_PTR,
             VALUE=CXTPCalendarController::CXTPDayInfoCache *,
             ARG_VALUE=CXTPCalendarController::CXTPDayInfoCache *
        ]
BalloonHelp.cpp
c:\program files\microsoft visual studio 8\vc\atlmfc\include\afxtempl.h(1547) : warning C4244: 'argument' : conversion from 'UINT_PTR' to 'UINT', possible loss of data
        c:\program files\microsoft visual studio 8\vc\atlmfc\include\afxtempl.h(1546) : while compiling class template member function 'CMap<KEY,ARG_KEY,VALUE,ARG_VALUE>::CAssoc *CMap<KEY,ARG_KEY,VALUE,ARG_VALUE>::GetAssocAt(ARG_KEY ,UINT &,UINT &) const'
        with
        [
             KEY=UINT_PTR,
             ARG_KEY=UINT_PTR,
             VALUE=CXTPCalendarController::CXTPDayInfoCache *,
             ARG_VALUE=CXTPCalendarController::CXTPDayInfoCache *
        ]
        c:\program files\microsoft visual studio 8\vc\atlmfc\include\afxtempl.h(1599) : while compiling class template member function 'CXTPCalendarController::CXTPDayInfoCache &CMap<KEY,ARG_KEY,VALUE,ARG_VALUE>::operator [](ARG_KEY)'
        with
        [
             KEY=UINT_PTR,
             ARG_KEY=UINT_PTR,
             VALUE=CXTPCalendarController::CXTPDayInfoCache *,
             ARG_VALUE=CXTPCalendarController::CXTPDayInfoCache *
        ]
        c:\program files\microsoft visual studio 8\vc\atlmfc\include\afxtempl.h(1358) : while compiling class template member function 'void CMap<KEY,ARG_KEY,VALUE,ARG_VALUE>::SetAt(ARG_KEY,ARG_V ALUE)'
        with
        [
             KEY=UINT_PTR,
             ARG_KEY=UINT_PTR,
             VALUE=CXTPCalendarController::CXTPDayInfoCache *,
             ARG_VALUE=CXTPCalendarController::CXTPDayInfoCache *
        ]
        c:\program files\microsoft visual studio 8\vc\atlmfc\include\afxtempl.h(1482) : while compiling class template member function 'CMap<KEY,ARG_KEY,VALUE,ARG_VALUE>::~CMap(void)'
        with
        [
             KEY=UINT_PTR,
             ARG_KEY=UINT_PTR,
             VALUE=CXTPCalendarController::CXTPDayInfoCache *,
             ARG_VALUE=CXTPCalendarController::CXTPDayInfoCache *
        ]
        c:\program files\codejock software\mfc\xtreme toolkitpro 2006 q2\source\calendar\xtpcalendarcontroller.h(424) : see reference to class template instantiation 'CMap<KEY,ARG_KEY,VALUE,ARG_VALUE>' being compiled
        with
        [
             KEY=UINT_PTR,
             ARG_KEY=UINT_PTR,
             VALUE=CXTPCalendarController::CXTPDayInfoCache *,
             ARG_VALUE=CXTPCalendarController::CXTPDayInfoCache *
        ]
Crc32Static.cpp
c:\program files\microsoft visual studio 8\vc\atlmfc\include\afxtempl.h(1547) : warning C4244: 'argument' : conversion from 'UINT_PTR' to 'UINT', possible loss of data
        c:\program files\microsoft visual studio 8\vc\atlmfc\include\afxtempl.h(1546) : while compiling class template member function 'CMap<KEY,ARG_KEY,VALUE,ARG_VALUE>::CAssoc *CMap<KEY,ARG_KEY,VALUE,ARG_VALUE>::GetAssocAt(ARG_KEY ,UINT &,UINT &) const'
        with
        [
             KEY=UINT_PTR,
             ARG_KEY=UINT_PTR,
             VALUE=CXTPCalendarController::CXTPDayInfoCache *,
             ARG_VALUE=CXTPCalendarController::CXTPDayInfoCache *
        ]
        c:\program files\microsoft visual studio 8\vc\atlmfc\include\afxtempl.h(1599) : while compiling class template member function 'CXTPCalendarController::CXTPDayInfoCache &CMap<KEY,ARG_KEY,VALUE,ARG_VALUE>::operator [](ARG_KEY)'
        with
        [
             KEY=UINT_PTR,
             ARG_KEY=UINT_PTR,
             VALUE=CXTPCalendarController::CXTPDayInfoCache *,
             ARG_VALUE=CXTPCalendarController::CXTPDayInfoCache *
        ]
        c:\program files\microsoft visual studio 8\vc\atlmfc\include\afxtempl.h(1358) : while compiling class template member function 'void CMap<KEY,ARG_KEY,VALUE,ARG_VALUE>::SetAt(ARG_KEY,ARG_V ALUE)'
        with
        [
             KEY=UINT_PTR,
             ARG_KEY=UINT_PTR,
             VALUE=CXTPCalendarController::CXTPDayInfoCache *,
             ARG_VALUE=CXTPCalendarController::CXTPDayInfoCache *
        ]
        c:\program files\microsoft visual studio 8\vc\atlmfc\include\afxtempl.h(1482) : while compiling class template member function 'CMap<KEY,ARG_KEY,VALUE,ARG_VALUE>::~CMap(void)'
        with
        [
             KEY=UINT_PTR,
             ARG_KEY=UINT_PTR,
             VALUE=CXTPCalendarController::CXTPDayInfoCache *,
             ARG_VALUE=CXTPCalendarController::CXTPDayInfoCache *
        ]
        c:\program files\codejock software\mfc\xtreme toolkitpro 2006 q2\source\calendar\xtpcalendarcontroller.h(424) : see reference to class template instantiation 'CMap<KEY,ARG_KEY,VALUE,ARG_VALUE>' being compiled
        with
        [
             KEY=UINT_PTR,
             ARG_KEY=UINT_PTR,
             VALUE=CXTPCalendarController::CXTPDayInfoCache *,
             ARG_VALUE=CXTPCalendarController::CXTPDayInfoCache *
        ]
OleDateTimeEx.cpp
c:\program files\microsoft visual studio 8\vc\atlmfc\include\afxtempl.h(1547) : warning C4244: 'argument' : conversion from 'UINT_PTR' to 'UINT', possible loss of data
        c:\program files\microsoft visual studio 8\vc\atlmfc\include\afxtempl.h(1546) : while compiling class template member function 'CMap<KEY,ARG_KEY,VALUE,ARG_VALUE>::CAssoc *CMap<KEY,ARG_KEY,VALUE,ARG_VALUE>::GetAssocAt(ARG_KEY ,UINT &,UINT &) const'
        with
        [
             KEY=UINT_PTR,
             ARG_KEY=UINT_PTR,
             VALUE=CXTPCalendarController::CXTPDayInfoCache *,
             ARG_VALUE=CXTPCalendarController::CXTPDayInfoCache *
        ]
        c:\program files\microsoft visual studio 8\vc\atlmfc\include\afxtempl.h(1599) : while compiling class template member function 'CXTPCalendarController::CXTPDayInfoCache &CMap<KEY,ARG_KEY,VALUE,ARG_VALUE>::operator [](ARG_KEY)'
        with
        [
             KEY=UINT_PTR,
             ARG_KEY=UINT_PTR,
             VALUE=CXTPCalendarController::CXTPDayInfoCache *,
             ARG_VALUE=CXTPCalendarController::CXTPDayInfoCache *
        ]
        c:\program files\microsoft visual studio 8\vc\atlmfc\include\afxtempl.h(1358) : while compiling class template member function 'void CMap<KEY,ARG_KEY,VALUE,ARG_VALUE>::SetAt(ARG_KEY,ARG_V ALUE)'
        with
        [
             KEY=UINT_PTR,
             ARG_KEY=UINT_PTR,
             VALUE=CXTPCalendarController::CXTPDayInfoCache *,
             ARG_VALUE=CXTPCalendarController::CXTPDayInfoCache *
        ]
        c:\program files\microsoft visual studio 8\vc\atlmfc\include\afxtempl.h(1482) : while compiling class template member function 'CMap<KEY,ARG_KEY,VALUE,ARG_VALUE>::~CMap(void)'
        with
        [
             KEY=UINT_PTR,
             ARG_KEY=UINT_PTR,
             VALUE=CXTPCalendarController::CXTPDayInfoCache *,
             ARG_VALUE=CXTPCalendarController::CXTPDayInfoCache *
        ]
        c:\program files\codejock software\mfc\xtreme toolkitpro 2006 q2\source\calendar\xtpcalendarcontroller.h(424) : see reference to class template instantiation 'CMap<KEY,ARG_KEY,VALUE,ARG_VALUE>' being compiled
        with
        [
             KEY=UINT_PTR,
             ARG_KEY=UINT_PTR,
             VALUE=CXTPCalendarController::CXTPDayInfoCache *,
             ARG_VALUE=CXTPCalendarController::CXTPDayInfoCache *
        ]
NtnXmlFunctions.cpp
c:\program files\microsoft visual studio 8\vc\atlmfc\include\afxtempl.h(1547) : warning C4244: 'argument' : conversion from 'UINT_PTR' to 'UINT', possible loss of data
        c:\program files\microsoft visual studio 8\vc\atlmfc\include\afxtempl.h(1546) : while compiling class template member function 'CMap<KEY,ARG_KEY,VALUE,ARG_VALUE>::CAssoc *CMap<KEY,ARG_KEY,VALUE,ARG_VALUE>::GetAssocAt(ARG_KEY ,UINT &,UINT &) const'
        with
        [
             KEY=UINT_PTR,
             ARG_KEY=UINT_PTR,
             VALUE=CXTPCalendarController::CXTPDayInfoCache *,
             ARG_VALUE=CXTPCalendarController::CXTPDayInfoCache *
        ]
        c:\program files\microsoft visual studio 8\vc\atlmfc\include\afxtempl.h(1599) : while compiling class template member function 'CXTPCalendarController::CXTPDayInfoCache &CMap<KEY,ARG_KEY,VALUE,ARG_VALUE>::operator [](ARG_KEY)'
        with
        [
             KEY=UINT_PTR,
             ARG_KEY=UINT_PTR,
             VALUE=CXTPCalendarController::CXTPDayInfoCache *,
             ARG_VALUE=CXTPCalendarController::CXTPDayInfoCache *
        ]
        c:\program files\microsoft visual studio 8\vc\atlmfc\include\afxtempl.h(1358) : while compiling class template member function 'void CMap<KEY,ARG_KEY,VALUE,ARG_VALUE>::SetAt(ARG_KEY,ARG_V ALUE)'
        with
        [
             KEY=UINT_PTR,
             ARG_KEY=UINT_PTR,
             VALUE=CXTPCalendarController::CXTPDayInfoCache *,
             ARG_VALUE=CXTPCalendarController::CXTPDayInfoCache *
        ]
        c:\program files\microsoft visual studio 8\vc\atlmfc\include\afxtempl.h(1482) : while compiling class template member function 'CMap<KEY,ARG_KEY,VALUE,ARG_VALUE>::~CMap(void)'
        with
        [
             KEY=UINT_PTR,
             ARG_KEY=UINT_PTR,
             VALUE=CXTPCalendarController::CXTPDayInfoCache *,
             ARG_VALUE=CXTPCalendarController::CXTPDayInfoCache *
        ]
        c:\program files\codejock software\mfc\xtreme toolkitpro 2006 q2\source\calendar\xtpcalendarcontroller.h(424) : see reference to class template instantiation 'CMap<KEY,ARG_KEY,VALUE,ARG_VALUE>' being compiled
        with
        [
             KEY=UINT_PTR,
             ARG_KEY=UINT_PTR,
             VALUE=CXTPCalendarController::CXTPDayInfoCache *,
             ARG_VALUE=CXTPCalendarController::CXTPDayInfoCache *
        ]
Generating Code...
Compiling resources...
Compiling manifest to resources...
Linking...
LINK : ../Bin/Debug/NtnCore.dll not found or not built by the last incremental link; performing full link
   Creating library ../Bin/Debug/NtnCore.lib and object ../Bin/Debug/NtnCore.exp
Embedding manifest...
Build log was saved at " file://c:\Projects\Notion\GUI\NtnCore\Debug\BuildLog.htm - file://c:\Projects\Notion\GUI\NtnCore\Debug\BuildLog.htm "
NtnCore - 0 error(s), 11 warning(s)




Replies:
Posted By: Oleg
Date Posted: 03 June 2006 at 11:10pm

hi,

Kind of strange, because I can't reproduce it with warning 4.

Can you help with it? I need your Visual Studio version and your afxtempl.h fle. Can you attach it here?



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


Posted By: Italo
Date Posted: 04 June 2006 at 12:00am

I'm using VS 2005. The requested file is attached.

https://forum.codejock.com/uploads/Italo/2006-06-04_000013_afxtempl.zip - 2006-06-04_000013_afxtempl.zip

VS Information:

Microsoft Visual Studio 2005
Version 8.0.50727.42  (RTM.050727-4200)
Microsoft .NET Framework
Version 2.0.50727

Installed Edition: Enterprise

Microsoft Visual Basic 2005   77642-113-3000004-41353
Microsoft Visual Basic 2005

Microsoft Visual C# 2005   77642-113-3000004-41353
Microsoft Visual C# 2005

Microsoft Visual C++ 2005   77642-113-3000004-41353
Microsoft Visual C++ 2005

Microsoft Visual J# 2005   77642-113-3000004-41353
Microsoft Visual J# 2005

Microsoft Visual Studio Tools for Office   77642-113-3000004-41353
Microsoft Visual Studio Tools for the Microsoft Office System

Microsoft Visual Web Developer 2005   77642-113-3000004-41353
Microsoft Visual Web Developer 2005

Visual Studio 2005 Team Edition for Developers   77642-113-3000004-41353
Microsoft Visual Studio 2005 Team Edition for Software Developers

Refactor! for Visual Studio   1.0
Refactor! for Visual Studio 2005.

SQL Server Analysis Services  
Microsoft SQL Server Analysis Services Designer
Version 9.00.1399.00

SQL Server Integration Services  
Microsoft SQL Server Integration Services Designer
Version 9.00.1399.00

SQL Server Reporting Services  
Microsoft SQL Server Reporting Services Designers
Version 9.00.1399.00

Visual Assist X  
For more information about Visual Assist, see the Whole Tomato Software website at http://www.WholeTomato.com - http://www.WholeTomato.com . For customer support, email mailto:Support@WholeTomato.com - Support@WholeTomato.com . Copyright (c) 1997-2004 Whole Tomato Software,  Inc.

 

PS. I'm also getting warnings while compiling some of the examples.



Posted By: Marcus
Date Posted: 04 June 2006 at 6:09am
I get the same, it's a /Wp64 compiler warning.


Posted By: Oleg
Date Posted: 04 June 2006 at 9:05am

Reproduced with DatePicker sample :(

Add this code before you include toolkit pro:

 

template<>

AFX_INLINE UINT HashKey<UINT_PTR>(UINT_PTR key)

{

return (DWORD)(((DWORD_PTR)key)>>4);

}

to avoid this warning.



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


Posted By: Italo
Date Posted: 04 June 2006 at 11:35am

Will you fix XTP to prevent these warnings in the next release?

 

Thanks

Italo

 



Posted By: Oleg
Date Posted: 04 June 2006 at 8:31pm

Hi,

of course,

 it is just temporary solution to avoid this warning....



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


Posted By: Kevin6
Date Posted: 21 June 2006 at 12:52am
Hi Oleg,
 
I have the same problem. I have cut your code posted above and pasted it to stdafx.h just above the #include for <XTToolKitPro.h> - The compiler now reports a missing ; on the AFX_INLINE line.
 
Am I missing something obvious? - Or have I missed the point about what I need to do completly!
 
Regards,
Kevin.


-------------
Kevin.


Posted By: Kevin6
Date Posted: 21 June 2006 at 12:58am

Should also have mentioned, I am using VS 2003 - If this makes a difference.

 
Regards,
Kevin.


-------------
Kevin.


Posted By: Warren
Date Posted: 21 June 2006 at 10:12am
I'm using 2003, and I had the same issue.

I just surrounded the
#include <XTToolkitPro.h>
with some code to get rid of the warning, and a #error to make sure I remove the code when I upgrade to the next version of the toolkit. Here is my code...

#pragma warning( push )
#pragma warning( disable : 4244 )
#include <XTToolkitPro.h>
#pragma warning( pop )

#if (_XTPLIB_VERSION_PREFIX!=1020)
#error remove this warning disable code 4244
#endif

Warren


Posted By: Kevin6
Date Posted: 22 June 2006 at 4:55am
Thanks Warren, this has done the trick!
 
(Also the reminder is a nice touch!)
 
Regards,
Kevin.


-------------
Kevin.



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