Author Topic: Errros in visual studio 6.0 dialog based applicaiton  (Read 227 times)

Offline santusrisoft

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
    • Email
Errros in visual studio 6.0 dialog based applicaiton
« on: June 14, 2010, 07:45:34 »
Hi All,

i just downloaded and went through help file. it looked very good. so i created a simple dialog based application to test if the code serves the purpose. but to my surprise, i got some errors.

first i got
xml.cpp(8636) : fatal error C1010: unexpected end of file while looking for precompiled header directive

i include "stdafx.h" in the beginning of xml.h

then i got errors

error C2632: 'long' followed by 'long' is illegal
error C2061: syntax error : identifier 'PCCERT_CONTEXT'

second can be solved by removing additional long. how to remove the last error? i included wincrypt.h also.

has anyone used the library in MFC application. if so, please send the sample code. i am struck on this.

thanks in advance,
santosh

Offline Michael

  • Administrator
  • Super Member
  • ******************
  • Posts: 1069
  • Karma: 32
    • TurboIRC.COM
Re: Errros in visual studio 6.0 dialog based applicaiton
« Reply #1 on: June 14, 2010, 07:54:55 »
Hello there.

Removing the additional "long" will result in errors because the library uses the "long long" type for 64-bit integers. VC++ 6.0 does not support "long long" so you must change it with __int64. Changing it to "long" will render the library useless.

As for wincrypt.h, what's the version of the SDK you currently have ? Check wincrypt.h ; does it include CERT_CONTEXT and PCCERT_CONTEXT ?

Regards.