Using QBasic prog to load a JPEG

Please use this Board for QBasic related requests ( file research, programming, etc.)

Moderators:Administrator, Global Moderator

Post Reply
Guest
Using QBasic prog to load a JPEG

Post by Guest » Fri Sep 12, 2003 1:35 am

I would like to use QBasic to load a JPEG file and disply it on the screen. Every example that I have seen doesn't work, including the one i downloaded form this site. Any suggestions?

Thanks

PS- The error that I am receiving from the debugger is 'Label not defined.' for the JPEG viewer that is available at this website.

Dr_Davenstein
QBasic God
Posts:166
Joined:Tue Mar 25, 2003 12:45 am
Location:U.S.A.
Contact:

Re: Using QBasic prog to load a JPEG

Post by Dr_Davenstein » Sun Sep 28, 2003 1:07 am

You can try to make your own. You'd have to figure out  how JPEG files are structured though. I don't know anything about them  ::), but I'm sure you can find documentation somewhere on the net.
Come check out [url=http://www.freebasic.net/forum/index.php]FreeBASIC[/url]. The syntax is based on QuickBasic, but it expands to use pointers, operator overloading, etc... The list goes on and on!

spuki
Newbie
Posts:4
Joined:Sat May 29, 2004 11:28 pm

Re: Using QBasic prog to load a JPEG

Post by spuki » Sat May 29, 2004 11:49 pm

You can show image files using the shell command and another program, e.g. LxPic by Stefan Peichl. An example of how this can be done can be found in a program I have written for learning, mainly vocabulary, which is described at http://wikibooks.org/wiki/User:Get-back-world-respect and discussed at http://en.wikipedia.org/wiki/User_talk: ... ld-respect
There is a download for the learning program as well.
Some others complained that since it is written in qbasic they could not run it with linux or macs. Could you help me with this?

Guest

Re: Using QBasic prog to load a JPEG

Post by Guest » Sun May 30, 2004 6:33 am

There is a jpeg loader written in C by Rich Geldreich
a long-time QB guru that possibly it would be able
to incorporate it using the external routines intended
for C program. I don't recall the procedure name in
QB off hand without looking it up, and have never really
used it, but it is a possibility.

Post Reply