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 » 2.43 Compiling problem Collapse All
Subject Author Date
Massimo Germi Sep 23, 2005 - 9:30 AM

I’m trying to compile new version of profuisdll but I have some errors:


In "build view" I see


ExtCmdManager.cpp
C:\Develop\Microsoft Visual Studio\VC98\INCLUDE\transact.h(226) : error C2059: syntax error : ’constant’
C:\Develop\Microsoft Visual Studio\VC98\INCLUDE\transact.h(271) : error C2143: syntax error : missing ’;’ before ’}’
C:\Develop\Microsoft Visual Studio\VC98\INCLUDE\oledb.h(17149) : error C2143: syntax error : missing ’;’ before ’}’
C:\Develop\Microsoft Visual Studio\VC98\INCLUDE\oledb.h(17149) : error C2143: syntax error : missing ’;’ before ’}’
C:\Develop\Microsoft Visual Studio\VC98\INCLUDE\oledb.h(17149) : error C2143: syntax error : missing ’;’ before ’}’


I’m using VC6 + latest platform sdk


What’s wrong?


Thanks for the answer


 


 

Technical Support Sep 23, 2005 - 10:11 AM

We would like to show you a sample from real life. We installed both Visual Studio 6.0 and Visual Studio .NET 2003 to our drive C:. Some of the exported functions of the Win32 API and Platform SDK are declared differently in older and newer SDK specifications. For example, the VarCmp() API, which is part of OLE automation, is defined in the "C:\Program Files\Microsoft Visual Studio\VC98\Include\oleauto.h" file of Visual Studio 6.0 as follows:

STDAPI VarCmp(LPVARIANT pvarLeft, LPVARIANT pvarRight, LCID lcid);
This API is defined in the "C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\OleAuto.h" file of Visual Studio .NET 2003 (and any latest Platform SDK) as follows:
STDAPI VarCmp(LPVARIANT pvarLeft, LPVARIANT pvarRight, LCID lcid, ULONG dwFlags);
This example explains the source of the compilation problems. We strongly recommend you not use the latest Platform SDK with Visual Studio 6.0. It is oriented to latter versions of Visual Studio.

Massimo Germi Sep 23, 2005 - 10:37 AM

I use VC6 (sp6) + latest PSDK from many month and I never had problems, I’ve also compiled profuisdll 2.42.


If you see the following row you will see the include files are not in the PSDK directory but in std VC directory


ExtCmdManager.cpp
C:\Develop\Microsoft Visual Studio\VC98\INCLUDE\transact.h(226) : error C2059: syntax error : ’constant’
C:\Develop\Microsoft Visual Studio\VC98\INCLUDE\transact.h(271) : error C2143: syntax error : missing ’;’ before ’}’


I’ve configured VC order include directory, to process include PSDK directory as last, and std VC include directory as first.


 


 

Technical Support Sep 24, 2005 - 11:06 AM

What do you think about connecting to your machine remotely and trying to fix the problem dealt with this particular situation? If you do not mind, just drop us an e-mail so that we can tell you how to set up a web conference.

Massimo Germi Sep 26, 2005 - 3:49 AM

I don’t kwon how, but now I’ve fixed the problem.


I made the following step:


1) I’ve reinstalled version 2.40, compiled ok;


2) I ’ve updated to 2.43, compiling error;


3) I’ve compared the differencies between ExtCmdManager.h (2.40 -> 2.43) and I have commented all new lines with #define __EXT_MFC_LANG_ID_(NEW LANGUAGES). 2.43 compiled ok;


4) I’ve uncommented the same lines; compiled ok;


5) I ’ve deinstalled all and I’ve installed WinXP pro ITA (sp2), VC6 ENG(sp6), latest PSDK, 2.43, compiling error;


6) I reexecutethe step 3 again, now working fine;


I don’t knok why ...


tx


 


 

Technical Support Sep 26, 2005 - 11:34 AM

This situation can only be clarified by connecting to your desktop remotely. Otherwise, we have no chance to help you if some ambiguity left.