[racket] the program can't find image file

From: 김태윤 (kty1104 at gmail.com)
Date: Fri Oct 8 12:04:08 EDT 2010


after I define as
(define-runtime-path hero ".")
(define hero (build-path hero "run.bmp"))
and then
when I try to use it with place-image,
 place-image: expected <image> as first argument, given: #<path:C:\Documents
and Settings\kty1104\Desktop\Scheme\run.bmp>

what's wrong with me?

thanks in advanced.

2010/10/9 Noel Welsh <noelwelsh at gmail.com>

> define-runtime-path is your friend. Put the images in the same
> directory as your code, then
> (define-runtime-path here ".")
> (define hero (build-path here "run.bmp"))
> HTH,
> N.
> On Fri, Oct 8, 2010 at 4:45 PM, 김태윤 <kty1104 at gmail.com> wrote:
> > hello.
> > there is a problem when I make an executable file
> > source is located at c:\
> > and run.bmp is located at c:\
> ...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20101009/f5c5c003/attachment.html>

Posted on the users mailing list.