Page 1 of 1

Posted: Fri Jan 17, 2003 8:18 am
by BackupUser
Restored from previous forum. Originally posted by Froggerprogger.

Hi all!
I compiled a list of LONG and FLOAT constants with the compilerparameter /RESIDENT to a .RES - File.
Now all is ok for the LONG-values, but if I try to call a FLOAT, I get back a big LONG instead of the correct value.
Do I have to call the resident's Floats in another way?

Example:

Code: Select all

#TESTLONG = 1234 #TESTFLOAT.f = 56.789
Save these two lines as a pb-file and compile it with the commandline 'PBCompiler YourFile.pb /RESIDENT YourFile.res' to a Resident-File, copy it to your Purebasic/Residents - directory, restart Purebasic and try the following:

Code: Select all

Debug #TESTLONG 
Debug #TESTFLOAT
There I get two Long-values instead of one LONG and one FLOAT. Is it a bug?
The follwing code is okay, of course, cause I declare the constants in the program itself.

Code: Select all

#TESTFLOAT2.f = 56.789 
Debug #TESTFLOAT2
Hmmmmmmmmm. Has anybody an idea :)

Purebasic - what a nice name for a girl-friend