Print Page | Close Window

Libraries Compile error

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=6754
Printed Date: 25 May 2025 at 3:20am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Libraries Compile error
Posted By: jung
Subject: Libraries Compile error
Date Posted: 29 March 2007 at 4:33am

I have juste install Toolkit Pro 10.4.2 and the library cannot be compiled
with Visual c++ 6.0. I have the following errors :


XTPSkinManagerApiHook.cpp
c:\program files\microsoft visual studio\vc98\include\wintrust.h(139) : error C2143: syntax error : missing ';' before '*'
c:\program files\microsoft visual studio\vc98\include\wintrust.h(139) : error C2501: 'CMSG_SIGNER_INFO' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\vc98\include\wintrust.h(139) : error C2501: 'psSignerInfo' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\vc98\include\wintrust.h(142) : error C2143: syntax error : missing ';' before '*'
c:\program files\microsoft visual studio\vc98\include\wintrust.h(142) : error C2501: 'HCERTSTORE' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\vc98\include\wintrust.h(142) : error C2501: 'pahStores' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\vc98\include\wintrust.h(158) : error C2143: syntax error : missing ';' before '*'
c:\program files\microsoft visual studio\vc98\include\wintrust.h(158) : error C2501: 'CERT_CONTEXT' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\vc98\include\wintrust.h(158) : error C2501: 'psCertContext' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\vc98\include\wintrust.h(161) : error C2143: syntax error : missing ';' before '*'
c:\program files\microsoft visual studio\vc98\include\wintrust.h(161) : error C2501: 'HCERTSTORE' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\vc98\include\wintrust.h(161) : error C2501: 'pahStores' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\vc98\include\wintrust.h(229) : error C2146: syntax error : missing ';' before identifier 'Data'
c:\program files\microsoft visual studio\vc98\include\wintrust.h(229) : error C2501: 'CRYPT_ATTRIBUTE_TYPE_VALUE' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\vc98\include\wintrust.h(229) : error C2501: 'Data' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\vc98\include\wintrust.h(230) : error C2146: syntax error : missing ';' before identifier 'DigestAlgorithm'
c:\program files\microsoft visual studio\vc98\include\wintrust.h(230) : error C2501: 'CRYPT_ALGORITHM_IDENTIFIER' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\vc98\include\wintrust.h(230) : error C2501: 'DigestAlgorithm' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\vc98\include\wintrust.h(231) : error C2146: syntax error : missing ';' before identifier 'Digest'
c:\program files\microsoft visual studio\vc98\include\wintrust.h(231) : error C2501: 'CRYPT_HASH_BLOB' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\vc98\include\wintrust.h(231) : error C2501: 'Digest' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\vc98\include\wintrust.h(316) : error C2061: syntax error : identifier 'HCERTSTORE'
c:\program files\microsoft visual studio\vc98\include\wintrust.h(327) : error C2061: syntax error : identifier 'PCCERT_CONTEXT'
c:\program files\microsoft visual studio\vc98\include\wintrust.h(422) : error C2146: syntax error : missing ';' before identifier 'pCert'
c:\program files\microsoft visual studio\vc98\include\wintrust.h(422) : error C2501: 'PCCERT_CONTEXT' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\vc98\include\wintrust.h(422) : error C2501: 'pCert' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\vc98\include\wintrust.h(467) : error C2143: syntax error : missing ';' before '*'
c:\program files\microsoft visual studio\vc98\include\wintrust.h(467) : error C2501: 'CMSG_SIGNER_INFO' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\vc98\include\wintrust.h(467) : error C2501: 'psSigner' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\vc98\include\wintrust.h(519) : error C2146: syntax error : missing ';' before identifier 'hProv'
c:\program files\microsoft visual studio\vc98\include\wintrust.h(519) : error C2501: 'HCRYPTPROV' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\vc98\include\wintrust.h(519) : error C2501: 'hProv' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\vc98\include\wintrust.h(532) : error C2143: syntax error : missing ';' before '*'
c:\program files\microsoft visual studio\vc98\include\wintrust.h(532) : error C2501: 'HCERTSTORE' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\vc98\include\wintrust.h(532) : error C2501: 'pahStores' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\vc98\include\wintrust.h(535) : error C2146: syntax error : missing ';' before identifier 'hMsg'
c:\program files\microsoft visual studio\vc98\include\wintrust.h(535) : error C2501: 'HCRYPTMSG' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\vc98\include\wintrust.h(535) : error C2501: 'hMsg' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\vc98\include\wintrust.h(644) : error C2143: syntax error : missing ';' before '__stdcall'
c:\program files\microsoft visual studio\vc98\include\wintrust.h(646) : error C2061: syntax error : identifier 'PCCERT_CONTEXT'
c:\program files\microsoft visual studio\vc98\include\wintrust.h(649) : error C2061: syntax error : identifier 'CERT_INFO'




Replies:
Posted By: Barto
Date Posted: 29 March 2007 at 4:50am
Do you have the Platform SDK installed? Latest version for VS6.0 is psdk_2003_feb. I think you need to configure the include and library pathes in VS for the Platform SDK and then you can compile Xtreme Toolkit.


Posted By: Oleg
Date Posted: 29 March 2007 at 6:03am
Hi,
Seems you manually copy imagehlp.cpp from SDK or higher VC to you vc6 includes.
 
ImageHlp.cpp from Visual Studio 6.0 doesn't include wintrust.h but older version includes it.
 


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


Posted By: Oleg
Date Posted: 29 March 2007 at 6:04am
...
https://forum.codejock.com/uploads/20070329_060357_IMAGEHLP.ZIP - uploads/20070329_060357_IMAGEHLP.ZIP
 
Attached original imagehlp.cpp from vc6.0 you can copy it to your "Microsoft Visual Studio\VC98\Include" directory.


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


Posted By: jung
Date Posted: 29 March 2007 at 7:51am
Thanks but now we get the following errors :
"
XTPSkinManagerApiHook.cpp
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\imagehlp.h(951) : error C2061: syntax error : identifier 'LPWIN_CERTIFICATE'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\imagehlp.h(977) : error C2061: syntax error : identifier 'LPWIN_CERTIFICATE'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\imagehlp.h(986) : error C2061: syntax error : identifier 'LPWIN_CERTIFICATE'
"


Posted By: Oleg
Date Posted: 29 March 2007 at 9:18am
Hi,
 
It have to be declared in WinBase.h...
 
 
Add it manually in beginning of imagehlp.cpp.
 
typedef struct _WIN_CERTIFICATE {
    DWORD       dwLength;
    WORD        wRevision;
    WORD        wCertificateType;   // WIN_CERT_TYPE_xxx
    BYTE        bCertificate[ANYSIZE_ARRAY];
} WIN_CERTIFICATE, *LPWIN_CERTIFICATE;
 

 


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



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