Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Calendar
  New Posts New Posts RSS Feed - Problems compiling under VS6
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Problems compiling under VS6

 Post Reply Post Reply
Author
Message
RolandoE. View Drop Down
Groupie
Groupie
Avatar

Joined: 19 May 2003
Location: United States
Status: Offline
Points: 30
Post Options Post Options   Thanks (0) Thanks(0)   Quote RolandoE. Quote  Post ReplyReply Direct Link To This Post Topic: Problems compiling under VS6
    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.



Edited by RolandoE.
Rolando E. Cruz-Marshall
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
RolandoE. View Drop Down
Groupie
Groupie
Avatar

Joined: 19 May 2003
Location: United States
Status: Offline
Points: 30
Post Options Post Options   Thanks (0) Thanks(0)   Quote RolandoE. Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.188 seconds.