Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

.exe help needed

Status
Not open for further replies.

qbasicking

Programmer
Aug 19, 2001
628
US
I can't compile my program. I wrote it in qb1.1 but qb4.5 is unable to run it, it doesn't understand the CALL Absolute command in my mousedriver (posted in another thread) does anybody know where I can get a program that make .exe out of a qb1.1 code?
 
qbasicking--

You need to use the standard qb library when you initiate QB.EXE. Just use the following at the DOS prompt:

c:>\QB45\QB.EXE [red]/L [/red]

Then!! it will compile. If you still have problems, let us know.

--MiggyD It's better to have two heads to solve a problem from different angles than to have tunnel vision to a dead end.
 
can I do that with the dos window? i can not get true dos with XP

ps: how do you change the colours of the text here at tek-tips?
 
Can you run a batch file? I start QB45 with a bat that includes the following lines:
Code:
@ECHO OFF
C:
CD \QB45
QB.EXE /AH /L QB.QLB
This makes sure that the correct library is loaded from the QB45 folder.

Regarding your second question.... when you post, click "Preview Post" instead of "Submit Post". You will see a list of options for editing (including text colors).
VCA.gif
 
ALt255 thanks for the tip w/ the colours.

I realized this last night but it wouldn't let me send the post. I am not using libraries (the whole thing was written in qb1.1, where there are no libraries). To my understanding is that it is having trouble reading the assembly.

How does this affect what I should do
 
I can't locate the thread you mentioned. Could you provide a link to it (like thread314-191725) so I might check your code?

In order to use CALL ABSOLUTE in QB45 you have to load the QB.QLB library first (see the batch file above). If you have a complete QB45 installation, place the cursor on the word "ABSOLUTE" and press F1. Then click "Details". The QB45 documentation contains a note about this quirk.
VCA.gif
 
Alt255
My thread is at Thread314-189332
Also I think I have said before, I did not use 4.5 to right this, I used 1.1.

When I went to the help file in 4.5 It said 'Sends control to a machine language procedure'
 
I understood about the version. Qbasic doesn't require a library to CALL ABSOLUTE. QB45 does.
VCA.gif
 
TO quickbasicking:

I'm not sure if this will help or even work in XP but you can try the following:

On the desktop create a NEW shortcut for QB.EXE (ver 4.5) and save/exit to save it.
Then, right-click on the new shortcut you just made and select properties. You should have a tab that says something like PROGRAM, click on it..

In the textbox that says something like " Target: " or--in my case WinME--" CMD Line: ", You'll need to add a " ? " (a question mark) to the end so that It'll look like this:


" target: C:\ProgLang\qb45\QB.exe ? "
(WinME has " CMD LINE: C:\ProgLang\QB45\QB.EXE ? ")


got it??? Good. Now, make sure that the " Working directory/folder: " has the correct path, then save it and you should be all set.

Click on the shortcut and you'll be prompted for any special parameters. At this point you can enter any parameters that are allowed in QB 4.5 {see cut/paste screenshot below}

( Valid options: [/RUN] [filename.bas in working directory] /AH /B /C:buf /G /NOHI /H [red]/L[/red] [lib] /MBF /CMD string )

Hope this helps with accessing the libs.

--MiggyD
It's better to have two heads to solve a problem from different angles than to have tunnel vision to a dead end.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top