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)
[PB 5.42 LTS] Bad Constant Value
-
- Addict
- Posts: 1443
- Joined: Wed Nov 12, 2008 5:01 pm
- Location: Russia
Re: [PB 5.42 LTS] Bad Constant Value
http://www.purebasic.fr/english/viewtop ... 27#p480927
This information confirms that the correct values of 3 and 4.
This information confirms that the correct values of 3 and 4.
Re: [PB 5.42 LTS] Bad Constant Value
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.
And I've been running the software for months and it works correctly with values 1 and 2.
Re: [PB 5.42 LTS] Bad Constant Value
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
Re: [PB 5.42 LTS] Bad Constant Value
Ok. I'll change the constant name as I'm using WinHTTP.