Dav (Sun Jan 19 2014 at 5:38 pm) Re: Re: Loadimage = folder
Hi Delsus, welcome to my little QB site.
Unless you specify the path along with the image filename, _LOADIMAGE will expect the image file to be in the current directory where the program is running. When the program cannot find the image file an ILLEGAL FUNCTION CALL error will result.
Also, make sure you are in a Graphics screen before loading the image (not SCREEN 0). For me, QB64 complains with that same error message when trying to load an image file before entering a graphics screen mode.
Side note: make sure to use _FREEIMAGE to free up the resources your program uses before your program ends.