Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - New User, compile error, please help
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

New User, compile error, please help

 Post Reply Post Reply
Author
Message
kebray View Drop Down
Newbie
Newbie
Avatar

Joined: 22 March 2005
Location: United States
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote kebray Quote  Post ReplyReply Direct Link To This Post Topic: New User, compile error, please help
    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?
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


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: 25 March 2005 at 1:32am
please attach your stdafx.h
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
kebray View Drop Down
Newbie
Newbie
Avatar

Joined: 22 March 2005
Location: United States
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote kebray Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
SebasB View Drop Down
Newbie
Newbie


Joined: 15 July 2005
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote SebasB Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
Oleg View Drop Down
Senior Member
Senior Member


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:42am

remove

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

before #include <XTPToolkitPro.h>

 

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
SebasB View Drop Down
Newbie
Newbie


Joined: 15 July 2005
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote SebasB Quote  Post ReplyReply Direct Link To This Post 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

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.047 seconds.