Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS Tech Support » Several Problems Collapse All
Subject Author Date
Michael Valentine Jan 26, 2006 - 5:21 AM

1) The fixed version of the integration wizard now builds the main libraries ok, but fails on the profskin libraries.


2) I was having similiar problems to the previous poster with static linking, but adding the code to the rc2 file seems to work, however I now get hundreds of template warnings such as:


c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\afxtempl.h(1534) : warning C4244: ’argument’ : conversion from ’SIZE_T’ to ’DWORD’, possible loss of data


c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\afxtempl.h(1252) : 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’


Coming from:


c:\Program Files\FOSS Software Inc\Prof-UIS\Include\ExtGridWnd.h(1125) : see reference to class template instantiation ’CMap<KEY,ARG_KEY,VALUE,ARG_VALUE>’ being compiled


3) You say that if you want to use resource-dependent features you must uncomment a line from Prof-UIS.h. However, this line is already uncommented in the released code. If you comment this line out then the code below does not compile:


ExtGridWnd.cpp:22252: should be: CColorDialog dlg( clrValueFinal, CC_FULLOPEN, & _tcsi.m_wndGrid );


and ExtGridWnd.cpp:22254: should be: return true;


Changing this code it then compiles and removes the template warnings mentioned above, however I then get a stream of assets and then a crash when I try to run the app.


Chris Jackson Jan 27, 2006 - 7:19 AM

I’m getting these warnings too, so if they could be fixed that would be very useful.  We don’t want to be building our projects with 64 bit portability warnings turned off.


Ta

Technical Support Jan 27, 2006 - 10:55 AM

We have compiled all the libraries and sample applications of Prof-UIS 2.52 in the following environments:

Visual C++ 6.0 without any SP
Visual C++ 6.0 SP5
Visual C++ 6.0 SP6
Visual Studio .NET (7.0)
Visual Studio .NET 2003 (7.1)
Visual Studio 2005 (8.0) - both Win32 and x64 versions

We did not see any warnings anywhere. We would really appreciate if you help us reproduce these warnings. By the way, we guess these warnings depend on the Platform SDK installation. Please provide us with the details.

Michael Valentine Jan 26, 2006 - 8:49 AM

Stream of asserts I mean :-)

Technical Support Jan 26, 2006 - 12:45 PM

The ProfSkin compilation in the Integration Wizard is now in the beta stage. It will succeed if you build ZLib and LibPNG projects in Visual Studio manually and repeat with building ProfSkin with the Integration Wizard. We confirm that there is the bug with CColorDialog described in your message but we failed to reproduce the template compilation warnings in our sample applications.

Michael Valentine Jan 27, 2006 - 2:53 AM

The template warnings originate from ExtGridWnd.h line 1123:


typedef CMap < __EXT_MFC_ULONG_SIZE_T, __EXT_MFC_ULONG_SIZE_T, _N_header_block_t *, _N_header_block_t * > HighLevelChunksMap_t


__EXT_MFC_ULONG_SIZE_T is defined in ExtMfcDef.h as #define __EXT_MFC_ULONG_SIZE_T SIZE_T  (using Visual Studio 7.1)


If I change this to: #define __EXT_MFC_ULONG_SIZE_T ULONG (as it is defined for older Visual Studio versions) then the warnings disappear.


Doing this presumably breaks the 64-bit compatibility though? Maybe you do not get this warning if you are using Visual Studio 8.0?

Michael Valentine Jan 27, 2006 - 3:08 AM

Actually I have just discovered that turning off the project setting "Detect 64-bit Portability Issues" removes the warnings too, I shall just do this :)

Technical Support Jan 27, 2006 - 10:54 AM

We have compiled all the libraries and sample applications of Prof-UIS 2.52 in the following environments:

Visual C++ 6.0 without any SP
Visual C++ 6.0 SP5
Visual C++ 6.0 SP6
Visual Studio .NET (7.0)
Visual Studio .NET 2003 (7.1)
Visual Studio 2005 (8.0) - both Win32 and x64 versions

We did not see any warnings anywhere. We would really appreciate if you help us reproduce these warnings. By the way, we guess these warnings depend on the Platform SDK installation. Please provide us with the details.

Michael Valentine Jan 30, 2006 - 3:23 AM

The libraries and sample applications do not generate the warnings. Maybe because they are not statically linked? Anyway I have sent you a test project that does generate the warnings...

Technical Support Jan 30, 2006 - 5:40 AM

Your project has clarified the situation. It was not difficult to find out the source of the warnings and how to avoid them. Please find the following part of the ...../Prof-UIS/Include/ExtMfcDef.h file:

#if (!defined __EXT_MFC_INT_PTR)
    #if _MFC_VER < 0x700
        #define __EXT_MFC_INT_PTR int
        #define __EXT_MFC_UINT_PTR UINT
        #define __EXT_MFC_ULONG_SIZE_T ULONG
    #else
        #define __EXT_MFC_INT_PTR INT_PTR
        #define __EXT_MFC_UINT_PTR UINT_PTR
        #define __EXT_MFC_ULONG_SIZE_T SIZE_T
        #endif
    #endif
#endif
and replace it with
#if (!defined __EXT_MFC_INT_PTR)
    #if _MFC_VER < 0x700
        #define __EXT_MFC_INT_PTR int
        #define __EXT_MFC_UINT_PTR UINT
        #define __EXT_MFC_ULONG_SIZE_T ULONG
    #else
        #define __EXT_MFC_INT_PTR INT_PTR
        #define __EXT_MFC_UINT_PTR UINT_PTR
        #if defined(_WIN64)
            #define __EXT_MFC_ULONG_SIZE_T SIZE_T
        #else
            #define __EXT_MFC_ULONG_SIZE_T ULONG
        #endif
    #endif
#endif