Print Page | Close Window

Problems compiling under VS6

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=3122
Printed Date: 30 June 2025 at 9:41pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Problems compiling under VS6
Posted By: RolandoE.
Subject: Problems compiling under VS6
Date Posted: 28 October 2005 at 7:54am

Hi,

Currently I have been working with the calendar control under VS2003 without any problems in combination with the XTreme Toolkit MFC Extentions.

Recently I built a new proyect using C++ VS6 and the Xtreme Toolkit. When I integrate the Calendar Control I get many error messages...

--------------------Configuration: AHBAS - Win32 Release--------------------
Compiling...
StdAfx.cpp
Automatically linking with Codejock.Calendar.Mfc60.v9.80.dll
C:\CODEJOCK SOFTWARE\XTREME TOOLKIT\INCLUDE\XTDefines.h(27) : error C2370: 'XPCOLOR_BASE' : redefinition; different storage class
C:\Program Files\Codejock Software\MFC\Xtreme Calendar Pro v9.80\Source\Common/XTPColorManager.h(64) : see declaration of 'XPCOLOR_BASE'
C:\CODEJOCK SOFTWARE\XTREME TOOLKIT\INCLUDE\XTDefines.h(29) : error C2370: 'XPCOLOR_HIGHLIGHT' : redefinition; different storage class

. . .

Automatically linking with XT3000Lib.dll
Error executing cl.exe.
AHBAS.exe - 13 error(s), 0 warning(s)

Weird thing is that I do not get these messages when compiling with C++ VS2003!!

Within stdafx.h


#pragma warning(disable:4786)
#include <XTCalendarPro.h> // Codejock Toolkit Pro Component
#include <XTToolKit.h>      // Xtreme Toolkit MFC Extensions

Am I missing something? None of you sample code combines the calendar control with Xtreme Toolkit. If I change the order of include statements I get the similar results.

Thanks for your help.



-------------
Rolando E. Cruz-Marshall



Replies:
Posted By: Oleg
Date Posted: 31 October 2005 at 1:56am

The problem that in Toolkit Standard 3.0 XPCOLOR_BASE was declared as define:

#define XPCOLOR_BASE  30

in ToolkitPro as UINT

const UINT XPCOLOR_BASE                       = 30;

 

You must patch Toolkit Standard to make it decalred as UINT too.



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


Posted By: RolandoE.
Date Posted: 31 October 2005 at 6:29am

Hi,

Thanks for the reply.

Originally posted by oleg oleg wrote:


You must patch Toolkit Standard to make it decalred as UINT too.

I could do this for the 13 or so lines of code but it does not explain why I have the compilation problem in VS6 and not in VS2003!

Anyone else have an explanation?

Thanks.



-------------
Rolando E. Cruz-Marshall



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