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

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




PostPosted: Wed Apr 28, 2004 7:35 pm   Post subject: need picture help

i am a new programmer and i dont know why my picture doesn't work

var cherries :int := Pic.FileNew ("c:\My Documents\cherry.bmp")
Pic.Draw(cherries,1,1,0)
Sponsor
Sponsor
Sponsor
sponsor
Paul




PostPosted: Wed Apr 28, 2004 7:45 pm   Post subject: (No subject)

-The path is wrong or the pic isn't there.
-You got the pic extension/name wrong.
I suggest u just use
Pic.FileNew ("cherries.bmp")
and not type the full path and save the file in the same folder as the picture.
Raugrist




PostPosted: Wed Apr 28, 2004 8:36 pm   Post subject: (No subject)

The problem is in your first line. Either change it to:
code:

var cherries :int := Pic.FileNew ("c:/My Documents/cherry.bmp")

Or
code:

var cherries :int := Pic.FileNew ("c:\\My Documents\\cherry.bmp")

I prefer the former, of course.
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  [ 3 Posts ]
Jump to:   


Style:  
Search: