Print Page | Close Window

New User, compile error, please help

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=2012
Printed Date: 22 July 2025 at 9:05am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: New User, compile error, please help
Posted By: kebray
Subject: New User, compile error, please help
Date Posted: 22 March 2005 at 11:39am
So, I downloaded the Professional Toolkit trial, added

#include <XTToolkitPro.h>

to my stdafx.h of an existing MFC application, hit the compile button, and get the following errors.

XTPWinThemeWrapper.h(86) : error C2143: syntax error : missing ',' before '*'
XTPWinThemeWrapper.h(251) : error C2143: syntax error : missing ',' before '*'
XTMaskEdit.h(37) : fatal error C1903: unable to recover from previous error(s); stopping compilation

Anyone have any ideas?



Replies:
Posted By: Oleg
Date Posted: 25 March 2005 at 1:32am
please attach your stdafx.h

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


Posted By: kebray
Date Posted: 28 March 2005 at 4:56pm
#ifndef STDAFX_COMMON_H
#define STDAFX_COMMON_H

#include <afxwin.h>       &n bsp; // MFC core and standard components
#include <afxcmn.h>
#include <afxext.h>       &n bsp; // MFC extensions
#include <afxdisp.h>        // MFC Automation classes
#include <afxdtctl.h>        // MFC support for Internet Explorer 4 Common Controls
#include <uxtheme.h>        // MFC support for WinXP themes
#include <tmschema.h>
#include <afxole.h>
#include <afxadv.h>
#ifndef _AFX_NO_AFXCMN_SUPPORT
#include <afxcmn.h>            // MFC support for Windows Common Controls
#endif // _AFX_NO_AFXCMN_SUPPORT

#include <XTPToolkitPro.h>

#include <afxsock.h>        // MFC socket extensions
#include <winsock.h>

#include <afxconv.h>

#include <afxmt.h>

// AutoCAD library headers;
#include "rxmfcapi.h"

// AutoCAD MFC Extensions:
#include "adui.h"
#include "acui.h"
#include "acuiComboBox.h"
#include "acuiDialog.h"


#pragma warning(disable : 4786)    // disable STL warnings about debug names being too long
#pragma warning(disable:4172)

#endif // STDAFX_COMMON_H



Posted By: SebasB
Date Posted: 28 October 2005 at 3:13pm

I have the same problem when compiling my project with VC++ 2002. When I compile my project with vc60 I dont have this error. Anyone found a solution ?

Thanks



Posted By: Oleg
Date Posted: 31 October 2005 at 1:42am

remove

#include <uxtheme.h>        // MFC support for WinXP themes
#include <tmschema.h>

before #include <XTPToolkitPro.h>

 



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


Posted By: SebasB
Date Posted: 31 October 2005 at 8:08am

Thanks Oleg for your reply but I found the problem, I added those lines to my stdafx.h before including XTToolkit.h

#if _MSC_VER > 1200

// Modify the following defines if you have to target a platform prior to the ones specified below.
// Refer to MSDN for the latest info on corresponding values for different platforms.
#ifndef WINVER    // Allow use of features specific to Windows 95 and Windows NT 4 or later.
#define WINVER 0x0400  // Change this to the appropriate value to target Windows 98 and Windows 2000 or later.
#endif

#ifndef _WIN32_WINNT  // Allow use of features specific to Windows NT 4 or later.
#define _WIN32_WINNT 0x0400 // Change this to the appropriate value to target Windows 2000 or later.
#endif      

#ifndef _WIN32_WINDOWS  // Allow use of features specific to Windows 98 or later.
#define _WIN32_WINDOWS 0x0410 // Change this to the appropriate value to target Windows Me or later.
#endif

#ifndef _WIN32_IE   // Allow use of features specific to IE 4.0 or later.
#define _WIN32_IE 0x0400 // Change this to the appropriate value to target IE 5.0 or later.
#endif

#endif // _MSC_VER > 1200




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