Re: C has not been declared!

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

Vidi wrote:
> 
> Hi,
> 
> 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?

Hi Vidi,

Your code works fine for me, if I change this line:

display_image({40,20},graphic1[2]) -- see just graphic1[2] without {}


But I can not reproduce that trick with err.ex anyway!

Regards,
Igor Kachan
kinz at peterlink.ru

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

Search



Quick Links

User menu

Not signed in.

Misc Menu