[PB 5.42 LTS] Bad Constant Value

Windows specific forum
hesitate
User
User
Posts: 11
Joined: Tue Mar 01, 2016 2:00 pm

[PB 5.42 LTS] Bad Constant Value

Post by hesitate »

Upgraded to 5.42
Tried to compile a program that uses WinHTTP

Got error: Constant already declared with a different value: #INTERNET_SCHEME_HTTP

My prog has the correct values:
#INTERNET_SCHEME_HTTP = 1
#INTERNET_SCHEME_HTTPS = 2

These now seem to come predefined with PureBasic 5.42, but the values are wrong (3 and 4, instead of 1 and 2)
User_Russian
Addict
Addict
Posts: 1443
Joined: Wed Nov 12, 2008 5:01 pm
Location: Russia

Re: [PB 5.42 LTS] Bad Constant Value

Post by User_Russian »

hesitate
User
User
Posts: 11
Joined: Tue Mar 01, 2016 2:00 pm

Re: [PB 5.42 LTS] Bad Constant Value

Post by hesitate »

According to this page: https://msdn.microsoft.com/en-us/librar ... s.85).aspx the correct values are 1 and 2

And I've been running the software for months and it works correctly with values 1 and 2.
User avatar
Thunder93
Addict
Addict
Posts: 1788
Joined: Tue Mar 21, 2006 12:31 am
Location: Canada

Re: [PB 5.42 LTS] Bad Constant Value

Post by Thunder93 »

Both are right. One is for WinINet, the other is for WinHTTP.
ʽʽSuccess is almost totally dependent upon drive and persistence. The extra energy required to make another effort or try another approach is the secret of winning.ʾʾ --Dennis Waitley
hesitate
User
User
Posts: 11
Joined: Tue Mar 01, 2016 2:00 pm

Re: [PB 5.42 LTS] Bad Constant Value

Post by hesitate »

Ok. I'll change the constant name as I'm using WinHTTP.
Post Reply