@ ChrisR, normeus, IdeasVacuum, infratec and all the others
I think we should take a brake and recapitulate bevore moving on.
What is the situation now?
Given is this code snippet:
Code: Select all
URL.s="https://das.familysearch.org/das/v2/dgs:004948415/size"
InitNetwork()
*Buffer = ReceiveHTTPMemory(URL)
If *Buffer
Result.s=PeekS(*Buffer, MemorySize(*Buffer), #PB_UTF8)
FreeMemory(*Buffer)
Else
Result="No result"
EndIf
MessageRequester("", Result)
There are 3 possibilities to execute this code:
1. Pasting the snippet in a "New" tab of the PB IDE and hitting F5
2. Pasting the snippet in a "New" tab of the PB IDE, saving the code as "TestReceiveHTTPMemory.pb" and then hitting F5
3. Pasting the snippet in a "New" tab of the PB IDE, saving the code as "TestReceiveHTTPMemory.pb", building an executable "TestReceiveHTTPMemory.exe" and then starting this exe.
What's the outcome?
I tried the above 3 variants on different versions of PB:
A. PB5.50(x86)
B. PB5.50(x64)
C. PB5.43LTS(x86)
D. PB5.43LTS(x64)
E. PB5.40LTS(x86)
F. PB5.40LTS(x64)
The result is:
Code: Select all
A B C D E F
1 OK OK OK OK OK OK
2 err OK err OK err OK
3 err OK err OK err OK
err means:
First an Error message:
---------------------------
PureBasic_Compilation1.exe - Systemfehler
---------------------------
Das Programm kann nicht gestartet werden, da api-ms-win-core-libraryloader-l1-2-0.dll auf dem Computer fehlt. Installieren Sie das Programm erneut, um das Problem zu beheben.
---------------------------
OK
---------------------------
and then the message requester showing "No result".
Remember, the system error message started to show up after I used the Dependency Walker.
Before that I noticed "only" that ReceiveHTTPMemeory() and WebGadget() weren't able to get HTTPS pages. (I now know, that this is only true on PB(x86) versions).
And this was after I was informed, that some customers (using XP) couldn't use my program anymore.
So it looks to me that there are 2 problems to solve:
1. get rid of this system error message on x86
2. get x86 code to work again with https as it does with x64
Some more information.
Before ReceiveHTTPMemory() was intuduced (PB5.40LTS ?), I used GetHTTPFile.pbi by HeX0R:
http://www.purebasic.fr/german/viewtopi ... =8&t=23478
I digged out some older versions of my program (~2012) and run the code on PB 5.50(x86): no system error message, results are shown.
So the question is: what happend? How can I solve this mess?