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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Qbasic conversion

Status
Not open for further replies.

vbajock

Programmer
Jun 8, 2001
1,921
US
I have to convert an old Qbasic app to Access. Could any of you all recommend a good OCx or library shareware tool that can help me convert the PEEK and POKE commands ?
Thanks
 
I don't believe that such a tool exists. If it does exist, it certainly couldn't work very well. Microsoft allows us to read certain areas of memory (PEEK) with the CopyMemory API. We can, sometimes, use that API to write in the memory space owned by the application (POKE). But any attempt to change the contents of memory locations, for instance, in the first 640k of RAM, usually results in access violations and a dead program.


vcn.gif

Suffice it to say that adding disk drives and a disk operating system to a personal microcomputer is guaranteed to increase its power dramatically.
CP/M and the Personal Computer
 
If it's a text program and you are poking to the screen,
you might consider PowerBasic console compiler.

 
If you are converting the (DOS) QBASIC program to Microsoft Access Application BASIC, there is no direct equivalent (Windows) behavior for those (DOS) PEEK and POKE actions.

What you must do is understand what the PEEKs and POKEs were actually doing (reading/writing characters on screen, messing with the DOS or BIOS data areas for some reason or other, like time delays or such, or something else) and program the functionally equivalent activity with new Application BASIC code in your Access program.

There is no peeking or poking memory in a windows program. It is not allowed by the operating system, and the same effects DOS users got by doing so cannot be done by directly accessing memory in Windows anyhow.

- Chuck Somerville
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top