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

Username:   Password: 
 RegisterRegister   
 help with pictures
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
CEKT




PostPosted: Wed May 23, 2007 9:59 pm   Post subject: help with pictures

i have followed the tutorial and have used the search to try to find similiar problems but that was unsuccesful.

It is probably something obvious. But when trying to import any images, it always comes up with an error. For example, here is some of my code.


code:
var pic1 :int := Pic.FileNew (maze.bmp)
      Pic.Draw (pic1, maxx div 2, maxy div 2, 0)
     
      delay (2000)
      cls
      Pic.Free (mypic1)


The error reads ('maze' has not been declared.)

Can anyone please help.

Thanks.
Sponsor
Sponsor
Sponsor
sponsor
Clayton




PostPosted: Thu May 24, 2007 8:00 am   Post subject: RE:help with pictures

You need to send maze.bmp as a string to Pic.FileNew() like this:

Turing:

var pic1 : int := Pic.FileNew ("maze.bmp")
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  [ 2 Posts ]
Jump to:   


Style:  
Search: