Post bugreports for the Windows version here
- Posts: 64
- Joined: Tue Mar 03, 2009 3:40 pm
- Location: france
This code compile with pb 5.73 but not with pb6 a3 -ASM
with fileid.l : error message : le #file n"est pas initialisé
with fileid.i : no error.
with pb6 a3 C backend : compile in both case.
Code: Select all
Define FileID.l ,file.s
file="put here a valid file name"
FileID = ReadFile(#PB_Any, file)
StreamData\dwCookie = FileID(FileID)
StreamData\dwError = #Null
- Posts: 1565
- Joined: Thu Jan 10, 2008 1:30 pm
- Location: Germany, Glienicke
It is no bug in PB. It is a bug in your code.
All Pure Basic Libraries return an Integer (64bit/32bit) as ID. Using a Long is not valid!
It works in pb 5.73 just randomly, because the number was small.