Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Some major help needed...
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Reality Check




PostPosted: Sat Apr 29, 2006 12:58 pm   Post subject: Some major help needed...

Ok I have tried for 45 minutes on end and I can't get it. Everytime I try to display a picture it doesn't work and gives me this error:

Illegal Picture ID number '0'. (Probable Cause: Picture was not successfuly created.).

I just opened a new window and here is the exact code (and only code) in it:

code:
var picID : int := Pic.FileNew ("dice.bmp")
Pic.Draw (picID, maxx div 2, maxy div 2, 0)


My filename is perfectly written (made sure there are no caps or anything), I checked to make sure it is a BMP file (even tried with JPG), I'm sure there is only one copy of it on my whole computer, and it is saved in my pictures (tried moving it to a different folder). I even tried writing out the whole directory. Now, the spacegame that comes with Turing works. The pictures all load. So I tried simply loading one of the pictures from that (the 'space' one) into a new turing window and it didn't work. I did this to make sure nothing was wrong with my picture and tried 3 other pictures as well. Obviously I'm doing something wrong. [/code]
Sponsor
Sponsor
Sponsor
sponsor
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 1 Posts ]
Jump to:   


Style:  
Search: