Code: Select all
Command Line:
C:\FB\FreeBASIC-1.09.0-winlibs-gcc-9.3.0\fbc64.exe -m "C:\EasyGUI\Main.bas" -v -g -s gui -gen GAS64 -maxerr 1024 -e -ex -exx -x "C:\EasyGUI\Main.exe"
FreeBASIC Compiler - Version 1.09.0 (2021-12-31), built for win64 (64bit)
Copyright (C) 2004-2021 The FreeBASIC development team.
standalone
target: win64, x86-64, 64bit
backend: gas64
Code: Select all
Dim as Integer pitch
ScreenInfo ,,,,pitch
Error 58: Type mismatch at parameter 5 of IMAGEINFOR()
I then tried declaring pitch as a longint as specified in the documentation ( I thought in 64-bit mode Integer and Longint were the same)
and got the same error
I then tried declaring pitch as long and it compiles without any errors.
Do I need to specify something else to indicate that screeninfo should be using 64-bit arguments?
Or am I reading the documentation wrong?
Am I producing a 32-bit executable instead of a 64-bit executable?
Thank you for any guidance in this matter.
Wally