Am Mit, 06 Sep 2000 schrieb zaqhaq@...:
>> gcc should accept that, but you can always try to replace
>What version of gcc do you use?
>At least 2.95.2 gives an "uncompleted datatype" error.
OK - I tried it and You're right - gcc complains
>> PALETTEENTRY peNew[]; with
>> PALETTEENTRY *peNew;
---- Was no good ----
>Would it work if I set the number of elements "big enough" ?
That would waste a lot of memory.
I took a look at the mingw headers, and for there is always just 1 element.
wingdi.h> typedef struct _BITMAPCOREINFO {
wingdi.h> BITMAPCOREHEADER bmciHeader;
wingdi.h> RGBTRIPLE bmciColors[1];
wingdi.h> } BITMAPCOREINFO,*LPBITMAPCOREINFO,*PBITMAPCOREINFO;
so put
PALETTEENTRY peNew[1];
and it will work.
Ciao,
Franco