"Andreas Schmitt" <> wrote in message
news:dca18m$1fh$02$...
>
> "Ian" <> schrieb im Newsbeitrag
> news:...
>> Andreas Schmitt wrote:
>>> for ( int x = 1; x<=20; x++ )
>>> {
>>> for ( int y = 1; y<=20; y++)
>>> {
>>> m_RFieldRect[x][y] = (PlayField[x][y]->GetXCoord,
>>
>> I assume GetXCoord is a function, so you are missing the ().
>>
>> The compiler is attempting to take the address of GetXCoord.
>>
>> Ian
>
> Duh! I knew it.. it had to be something this simple.. *g*
> I guess coding all night long makes you become this blind to seeing stuff
> like this
>
> Thanks to both of you for the quick help anyway
Now that you've got it compiling, you might want to stop it from crashing,
also.
You're using indexes from 1 through 20. In C++, arrays are indexed starting
at 0, not 1. Your loops need to start at 0 and only continue while the
index is _less_than_ 20.
-Howard
>