Re: C has not been declared!

new topic     » goto parent     » topic index » view thread      » older message » newer message

Vidi wrote:

> I am trying to make a small program to dispalay an image onto the screen, but
> when I run it, it doesn't show the image and the ERR file says:
> 
>     C:\euphoria\BIN\Stuff\ex.err:1
>     C has not been declared
>     C:\euphoria\BIN\Stuff\ex.err:1
>     ^
> my code is:
> }}}
<eucode>
> include graphics.e
> include image.e
> 
> atom gm
> sequence graphic1
> 
> gm = graphics_mode(18)
> clear_screen()
> graphic1 = read_bitmap("1.bmp")
> display_image({40,20},{graphic1[2]})
> </eucode>
{{{

> 
> Any ideas why it doesn't work?

I have no idea how this code can produce that error message!
However,
    display_image({40,20}, graphic1[2])
should work.

Regards,
   Juergen

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu