Allegro.cc - Online Community

Allegro.cc Forums » Programming Questions » Grabber (2 Problems)

This thread is locked; no one can reply to it. rss feed Print
Grabber (2 Problems)
Marcel
Member #8,543
April 2007

Hi everyone :). At first: I'm new and from germany, so sorry for my average englisch skills =(

I have 2 Problems with Grabber.

First i can't compile any source which contains a DATAFILE. I'm getting following error (for example):

52 D:\Dev-Cpp\projekte\Allegro\Pong\main.cpp invalid conversion from `void*' to `const RGB*'

As you can see I am using Dev-Cpp. I was trying to compile the example file exdata.
This was the codeline:

set_palette(datafile[THE_PALETTE].dat);

What am I doing wrong?

And my second problem is(maybe i am to blind)...where can i get Grabber. I can't even compile it, because of the same reason as above.

I hope you can help me :)

--- Where the german seems to dwell... ---

ImLeftFooted
Member #3,935
October 2003
avatar

set_palette((RGB*)datafile[THE_PALETTE].dat);

This is an incompatibility between C and C++ (and Allegro was designed as a C library).

Quote:

where can i get Grabber

Its in your tools or bin directory or something. If you installed via devpak you have to also install the 'Allegro Goodies' pack.

Marcel
Member #8,543
April 2007

Wow :D hi, that was very fast :)

Thank you for your help. I found grabber :)
And your advice is working =) stupid me.

Again, thank you for your help :)

--- Where the german seems to dwell... ---

Go to: