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 » Building with VS2008 produces 'error C2065: 'CX_BORDER' : undeclared identifier' Collapse All
Subject Author Date
Thomas Bennett Apr 27, 2008 - 6:05 PM


I just purchased and downloaded Prof-UIS 2.82.  When I try to build it using VS2008 Unicode Debug build on Windows XP SP2, I receive the following errors.  I receive the same errors for ExtScrollWnd.cpp and ExtSplitterWnd.cpp.  If I build using VS2005, the problem does not happen.  I have VS2005 and VS2008 on the same machine.


I downloaded the package from the Installer link under ’Full Library’.


I noticed these constants were defined as 1 in the module ExtToolControlBar.cpp, so I added the same constants to the other modules and it builds.  Why is this happening, what are the correct values for these contants?  I would rather use the source code as it is, rather than modify it to make it work???


 


1>------ Build started: Project: ProfUISDLL, Configuration: Unicode Debug Win32 ------


1>Compiling...


1>ExtPaintManager.cpp


1>..\Src\ExtPaintManager.cpp(21394) : error C2065: ’CX_BORDER’ : undeclared identifier


1>..\Src\ExtPaintManager.cpp(21395) : error C2065: ’CY_BORDER’ : undeclared identifier


1>..\Src\ExtPaintManager.cpp(21405) : error C2065: ’CX_BORDER’ : undeclared identifier


1>..\Src\ExtPaintManager.cpp(21410) : error C2065: ’CY_BORDER’ : undeclared identifier


1>..\Src\ExtPaintManager.cpp(21417) : error C2065: ’CX_BORDER’ : undeclared identifier


1>..\Src\ExtPaintManager.cpp(21422) : error C2065: ’CY_BORDER’ : undeclared identifier


1>..\Src\ExtPaintManager.cpp(21435) : error C2065: ’CX_BORDER’ : undeclared identifier


1>..\Src\ExtPaintManager.cpp(21440) : error C2065: ’CY_BORDER’ : undeclared identifier


1>..\Src\ExtPaintManager.cpp(21447) : error C2065: ’CX_BORDER’ : undeclared identifier


1>..\Src\ExtPaintManager.cpp(21452) : error C2065: ’CY_BORDER’ : undeclared identifier


1>Build log was saved at "file://c:\Program Files\FOSS Software Inc\Prof-UIS\Bin_900\UnicodeDebug\ProfUISDLL\BuildLog.htm"


1>ProfUISDLL - 10 error(s), 0 warning(s)


========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========


Technical Support May 14, 2008 - 6:22 AM

This problem is solved in v.2.83 which will be released soon.

Paul Cowan May 6, 2008 - 1:02 PM

The problem occurs when you install the MFC update to VS2008.  CX_BORDER and CY_BORDER  are no longer defined in the MFC include files.  I simply added the following lines to the ExtMfcDef.h file:


#undef CX_BORDER

#undef CY_BORDER

#define CX_BORDER 1

#define CY_BORDER 1

Technical Support May 7, 2008 - 3:39 AM

We have Visual Studio 2008 without update and there these constants are present. They are defined in the following file: “.\Microsoft Visual Studio 9.0\VC\atlmfc\src\mfc\afximpl.h". We will install the update and look there. Anyway your fix is applicable. We are going to add some new constants which should replace these.


Technical Support Apr 28, 2008 - 9:41 AM

Thank you for your choice. The CX_BORDER and CY_BORDER constants are defined in MFC and used in old style toolbars. We have all the versions of Visual C++ starting from 6.0 and up to 2008 installed on our development computers (excepting Visual Studio .NET 2002 on x64 machines where it cannot be installed) and we have never come across this problem. We believe it may have something to do with your computer. Did you install any additional software integrated with Visual Studio 2008 on your computer? Some service pack? Could you post the list of Include folders that you can find in the Visual Studio 2008 settings?

Thomas B Apr 29, 2008 - 3:18 PM

Here is the copy info from our Visual Studio 2008 about box:


Microsoft Visual Studio 2008

Version 9.0.21022.8 RTM

Microsoft .NET Framework

Version 3.5


Installed Edition: Professional


Microsoft Visual Basic 2008   91605-140-0037112-60428

Microsoft Visual Basic 2008


Microsoft Visual C# 2008   91605-140-0037112-60428

Microsoft Visual C# 2008


Microsoft Visual C++ 2008   91605-140-0037112-60428

Microsoft Visual C++ 2008


Microsoft Visual Studio 2008 Tools for Office   91605-140-0037112-60428

Microsoft Visual Studio 2008 Tools for Office


Microsoft Visual Web Developer 2008   91605-140-0037112-60428

Microsoft Visual Web Developer 2008


Update Rollup for Microsoft Visual Studio 2008 Professional Edition - ENU (KB945273)   KB945273

This update rollup is for Microsoft Visual Studio 2008 Professional Edition - ENU.

If you later install a more recent service pack, this update rollup will be uninstalled automatically.

For more information, visit http://support.microsoft.com/kb/945273.


Include files from options dialog:


$(VCInstallDir)include


$(VCInstallDir)atlmfc\include


$(WindowsSdkDir)\include


$(FrameworkSDKDir)include


C:\Program Files\Automated QA\TestComplete 5


C:\Program Files\FOSS Software Inc\Prof-UIS\Include


 


We are primarily interested in the grid control from your package.  As long as the problem does not affect the grid control, we are OK with it.  It would be nice to be able to cleanly compile it, without having to modify the source.  It may have something to do with the new MFC 2008 feature pack we installed.  This is what is listed last in the copy info information.


Thanks.