04-20-2006, 03:22 AM
Quote:......First of all, I suggest you read Nathan's last post regarding the problems Qbers have with paths.
well I think I see where the problem is, I am starting QB from "C:\qb45\qb.exe".
when I should be starting a QB.exe from the path of my project?
I did try this, it appeared to work at first. But when I moved the project folder to the desktop, it had the ever present missing files error.
I even wrote an error handling routine because it happens so often.
I'm sure I'm missing something, is there a chance some one can walk me through it?
Personally, I have never had these problems because I use QuickBASIC 4.5 and never use QBasic. Like Nathan suggests, I have a PATH environment variable set to where my QuickBASIC compiler and libraries reside.
When I start a new project, I create a directory for it, and do all my work in that directory, which contains all my source code files, data files, batch files, and any utilities. I write the source code in this directory, compile, and obtain the executable files into this directory. When the programs make reference to any files, they do so without specifying any paths, only the filenames.
If this project is for a client, at the end, I may remove all the source code files before installing all the rest of the files in the directory onto the client's machine. The name of my original development directory doesn't need to be the same as that on the clients machine. Everything is "relative" to the directory on which it is installed.
I think you could compile your QB programs and obtain the same level of simplicity without having to worry where QB.EXE is at execution time.
*****