delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/03/05/05:01:06

Message-ID: <D1FB30BBA491D1118E6D006097BCAE3911A919@Probe-nt-2a.Probe.co.uk>
From: Shawn Hargreaves <ShawnH AT Probe DOT co DOT uk>
To: djgpp AT delorie DOT com
Subject: Re: constructors + djgpp/allegro
Date: Thu, 5 Mar 1998 10:00:35 -0000
MIME-Version: 1.0

Dan <dyoon AT home DOT com> writes:
>    myship(int newX, int newY)
>    {
>       x = newX;
>       y = newY;
>       image = (BITMAP*)data[myship].dat;
>    }
> }

When you refer to data[myship].dat, I presume the <myship> is one of 
the object identifiers defined in your grabber header file? If so, 
you can't also have a class called myship, because this has been
#defined to something else.

If this doesn't explain your problem, try to isolate the smallest 
possible complete code example that demonstrates the problem 
(something that we can actually compile and run).

	Shawn Hargreaves.

- Raw text -


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