SUMMARY
When using the OpenResFile statement, you must specify the complete
path to the resource file being opened, such as in the following
example:
ref%=0
OpenResFile "Examples:QB Demos:Demo Resources",ref%
Otherwise, you must put the resource file in the current folder (the
folder where QuickBASIC itself or the compiled application is located)
and specify no path, as follows:
ref%=0
OpenResFile "Demo Resources",ref%
If the file does not exist in the specified location, then OpenResFile
will create an empty file with the specified name. If the file is
created empty, it will have no resources, and calling a subsequent
library routine that tries to pull a resource out of it may produce a
run-time error, such as the following:
"Invalid Function Call"
NOTE: You can use CHDIR to change the current default folder where
OpenResFile searches for unqualified filenames, as follows:
CHDIR "Examples:QB Demos:"
OpenResFile "Demo Resources"