www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/03/04/07:37:55

Message-ID: <8D53104ECD0CD211AF4000A0C9D60AE35EDABA@probe-2.acclaim-euro.net>
From: Shawn Hargreaves <ShawnH AT Probe DOT co DOT uk>
To: djgpp AT delorie DOT com
Subject: Re: Void pointer problem with datafiles/C++
Date: Thu, 4 Mar 1999 12:36:44 -0000
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.0.1460.8)
Reply-To: djgpp AT delorie DOT com

Adam Christopher Lawrence writes:
> If I try a cast, as suggested in the docs:
> 
> set_pallete( (PALLETE *)Data[PALLETE].dat);
> 
> I get a 'parse error before )' from the compiler.

A palette is an array of RGB structures, not a strucute itself. Either
cast to an RGB *, or drop the * and just cast to a PALETTE.


	Shawn Hargreaves.


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019