Grabber (2 Problems)
Marcel

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 :)

ImLeftFooted
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

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 :)

Thread #591083. Printed from Allegro.cc