Latest Uploads
Smaller Scar?

zzoom

Big Scar

Jayenkai

Swirly Thing

Jayenkai

Best Title

rychan

Spaceplosi ... nator 2086

rychan

Damn Bounces

AndyH

Forum Home

Loading problem

UserMessage
Posted : Saturday, 19 March 2011, 15:31 | Permalink
dna


In this code I have a problem getting the jpg to load.

-->

I'm stopping the program at that point and cannot get the variable to be other than zero (0).
the code and the images are in the same folder. I save the source code in the same folder and even tried compiling and making a exe and then running the program, thinking that it was a system 7 nuance.


-----
DNA
Posted : Monday, 21 March 2011, 21:06 | Permalink
Teasy


here are some questions
that may help you figure out the problem.

- does floor.jpg load with loadimage?

- can the floor.jpg file be opened directly via 'explorer'
without intervention of the file stream system
asking 'do you want to open file file?'

- are you sure it's really a jpg file
and not, say, a bmp file with a jpg extension?

- can floor.jpg be opened by some other programs?

- does blitz return '1'
when examining the file with FileType?

- does blitz return a non-zero value
when examining the file with FileSize?

- does blitz return 'True'
on opening the file with ReadFile?

more questions are available if you need them
Homepage : http://www.bettiesart.com/tc/contact
-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 696|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Latest Posts
No Power!!
Kuron Wed 20:07
GoPro Hero 4 Silver vs Nikon KeyMission 170
Kuron Wed 20:03
The New Fiver
Jayenkai Wed 15:02
So I've been at this chuff for a while now...
GfK Wed 14:08
New Amstrad CPC game.
steve_ancell Wed 10:44
What Have You Done - Sept 2016
Jayenkai Wed 03:35
WW - #249 - The Symmetrical Challenge
Jayenkai Wed 03:27
WW - #248 - The Duck Challenge
Jayenkai Wed 03:02
Frustrating Issues in Games
rockford Tue 08:24
Jay Gets XBoned...
rockford Mon 13:29
More

Latest Items
Dev-Diary : 1st Ever Wed Workshop Progress
zzoom Mon 14:00
Dev-Diary : Intellivision Controller Adapter
spinal Sun 11:33
Snippet : Contour Map from Data
HoboBen Fri 18:14
Snippet : FPS Control (WASD+Mouse)
Pakz Wed 22:30
Article : Concurrency in C#
Afr0 Sun 12:28
Snippet : Mandelbrot in BMax
Jayenkai Sun 03:37
News : Newsletter #281
HoboBen Fri 04:18
News : Newsletter #280
Jayenkai Sat 05:10
Blog : Monkey-X Box2D: Learning from my perspective... Hopefully!
steve_ancell Sun 14:49
Snippet : JNKrunch v1.0
spinal Sun 12:02
Snippet : Dungeon/Cave Generator - Simple
Pakz Wed 15:05
Snippet : Platform Sprite Generator
Jayenkai Tue 15:22
Snippet : Code Creates Crates
HoboBen Tue 07:02
Snippet : Texture - Leafy camouflage
HoboBen Tue 07:00
Snippet : Texture - Stone 3
Pakz Mon 09:55
More

Who's Online
Kuron
Thu, at 00:12
Jayenkai
Wed, at 23:54
Pakz
Wed, at 23:32
GfK
Wed, at 23:15
9572AD
Wed, at 20:36
therevillsgames
Wed, at 18:28
steve_ancell
Wed, at 16:12
HoboBen
Wed, at 13:23
rockford
Wed, at 13:08
spinal
Wed, at 11:56
Link to this page
Site : Jayenkai 2006-Infinity | MudChat's origins, BBCode's former life, Image Scaler.