07-20-2005, 10:53 PM
i copy and pasted that how could have i screwed that up
anyways corrected now
anyways corrected now
quickbasic on windows xp
|
07-20-2005, 10:53 PM
i copy and pasted that how could have i screwed that up
anyways corrected now
07-21-2005, 02:12 AM
Thank you, ShadowWolf and Za!re. I have downloaded the fbc.exe Free Basic compiler. I have also downloaded an fbide.exe. When I ran the fbide, I was very happy. When I tried to run QuickBASIC .bas files in fbide.exe, I had problems; not so in QuickBASIC on my MSDO 95 disk! So, I sort of gave up on fbide.exe. I just like to have things work properly, or know enough to fix the problem. With fbide, I am as a child, so, I just go to what I know better. This is why I have been hitting my head against the Internet, in the hopes that I could run .bas and QB .exe programs as I have always been able to, except when I got the new computer with Windows XP on it.
Now, if you can tell me, "Download this fbide.exe, it will allow you to run ALL your QuickBASIC .bas files without a hitch. And, this fbc.exe witll compile your QuickBASIC .bas files that run in the fbide fine, and the .exe files will now run in your Windows XP HE without a hitch, too." Well, that's the time I will give this new-fangled thing another try. Note, my present fbide.exe is, from its Main Menu Help: Quote:FBIde v0.3.3, by VonGodric As I have not compiled anything in fb, I guess I shouldn't even mention my fbc.exe.
Ralph, using QuickBASIC 4.5 and Windows XP Home Edition and Service Pack 2, with HP LaserJet 4L printer.
07-21-2005, 02:27 AM
*cough*it's z!re*cough*
You have an old version. Plus maybe saying what the problems were would help =P Downloading the bundle makes everything work. Just run the program and it installs all you need. The run fbide.exe and set the compiler path. http://prdownloads.sourceforge.net/fbide...e?download Don't give up so easily. Plus we can't tell you Quote:"Download this fbide.exe, it will allow you to run ALL your QuickBASIC .bas files without a hitch. And, this fbc.exe witll compile your QuickBASIC .bas files that run in the fbide fine, and the .exe files will now run in your Windows XP HE without a hitch, too." fbide does not -run- the code. It simply is a IDE for you to work with. You code in it. it compiles the code into an exe. then it runs the exe. without fbc and the correct compiler path fbide is worthless.
07-21-2005, 02:32 AM
FB is different than QB in some ways. If you have problems, you might try checking the "keywords.txt" file for changes from QB to FB. If that doesn't help, try the online documentation[1]. It explains in-depth how to use it in FB and it also lists the changes from QB to FB.
[1] - http://www.freebasic.net/wiki/wikka.php?wakka=DocToc
974277320612072617420666C61696C21 (Hexadecimal for those who don't know)
07-21-2005, 03:30 AM
WhiteTiger0990:
Here I go! I downloaded the compressed file, "ran" it, got a zillion and one files loaded into my computer in C:\Freebasic\, ending up with the ide running. I went to File, went to my A: drive and selected a relatively small and simple program, called "CHASE", a 3KB .bas program, which code I copy below. This program runs fine in qb.exe (QuickBASIC 4.5), and uses only the default screen, the text screen. I started FBIde, then clicked on File, Open, looked for "CHASE.bas", found it on my A: drive, double clicked it, and it loaded in the fbide, where I can see it (for what it's worth, I had saved it as a text file). Now, I clicked on RUN, did a "compile and run", it seemed to work, and the (compiled?) program started up. After the first screen, I got, instead of a solid blue background, an alternating white and blue bar one character high, with the screen (program?) frozen! I tried to run the CHASE.exe file directly, by just going to the A: drive and double clicking on it. Same thing! Why? I don't know why. It runs perfectly O.K. in QuickBASIC 4.5. Why not after I compiled it in the fbc.exe that I just now obtained after running the downloaded file, FB_0.13_IDE_0.4.exe ? Here is the simple program, which was inspired by someone else's posting here, I believe: Code: RANDOMIZE TIMER
Ralph, using QuickBASIC 4.5 and Windows XP Home Edition and Service Pack 2, with HP LaserJet 4L printer.
07-21-2005, 04:33 AM
perfectly understandable
You just bumped into one of the small incompatibility issues. change the Code: IF LEFT$(k$, 1) <> CHR$(0) Code: IF LEFT$(k$, 1) <> CHR$(255) since FBC uses C stuff (correct me if im wrong) chr$(0) is the null terminator for strings.
07-21-2005, 04:39 AM
Thank you. I know that you just won't believe me when I say that I had just found that when I got your message alert! So, I now have two CHASE.BAS, one on my A: drive, with CHR$(0), and one on my C:\Freebasic directory, with chr$(255). I will now recompile...
Nope, I still get the blue and white bars! I'll keep reading the keywords.txt file, searching for other possible differences. Arghh! No other way out, I guess.
Ralph, using QuickBASIC 4.5 and Windows XP Home Edition and Service Pack 2, with HP LaserJet 4L printer.
07-21-2005, 04:46 AM
oh yeah the chr$(255) thing should have fixed the moving. But I don't know about the white and blue bars. I'm on linux =P
I still see the bars But sorry I dont know how to help ^^;; it kinda looks the the chr$(219) is too short)
07-21-2005, 04:53 AM
CHR$(219) is just a solid rectangle, one character wide and high. It shows up O.K. for the blue rectangle (the moving one), so that would not seem to be a problem, to me. Any other ideas?
I did not find any other commands or statements that I could identify as different in fb from qb.
Ralph, using QuickBASIC 4.5 and Windows XP Home Edition and Service Pack 2, with HP LaserJet 4L printer.
07-21-2005, 07:45 AM
take the extra print statement out of your for loops.
Code: FOR r = 1 TO 22 'rows btw, if you use len(k$) <> 2 then the code is the same in both qb and fb. :wink: Code: RANDOMIZE TIMER works the same in both.
ttp://m0n573r.afraid.org/
Quote:quote: "<+whtiger> you... you don't know which way the earth spins?" ... see... stupidity leads to reverence, reverence to shakiness, shakiness to... the dark side...phear |
« Next Oldest | Next Newest »
|