Click here to Skip to main content
15,902,492 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionhow to display Powerpoint's presentations by OLE? Pin
supershine13-Jan-05 16:47
supershine13-Jan-05 16:47 
AnswerRe: how to display Powerpoint's presentations by OLE? Pin
Ryan Binns13-Jan-05 18:02
Ryan Binns13-Jan-05 18:02 
AnswerRe: how to display Powerpoint's presentations by OLE? Pin
Ken Bridson13-Jan-05 22:00
Ken Bridson13-Jan-05 22:00 
AnswerRe: how to display Powerpoint's presentations by OLE? Pin
Alex Korchemniy14-Jan-05 5:38
Alex Korchemniy14-Jan-05 5:38 
AnswerRe: how to display Powerpoint's presentations by OLE? Pin
supershine17-Jan-05 20:09
supershine17-Jan-05 20:09 
QuestionOn windows XP SP2--Timeshifting has serious delays ? Pin
13-Jan-05 16:43
suss13-Jan-05 16:43 
AnswerRe: On windows XP SP2--Timeshifting has serious delays ? Pin
LinRan13-Jan-05 17:14
LinRan13-Jan-05 17:14 
Generalillegal zero-sized array Pin
LighthouseJ13-Jan-05 16:25
LighthouseJ13-Jan-05 16:25 
I'm writing a class to read in a bitmap file, background information for your consumption. I'm trying to implement this but I get the errors:
...\489gui\bitmapFile.h(45): warning C4200: nonstandard extension used : zero-sized array in struct/union
...\489gui\bitmapFile.h(46): error C2229: class 'bitmapFile' has an illegal zero-sized array
...\489gui\bitmapFile.h(46): warning C4200: nonstandard extension used : zero-sized array in struct/union
        Cannot generate copy-ctor or copy-assignment operator when UDT contains a zero-sized array
...\489gui\bitmapFile.h(48): error C2229: class 'bitmapFile' has an illegal zero-sized array
...\489gui\bitmapFile.h(45): warning C4200: nonstandard extension used : zero-sized array in struct/union
...\489gui\bitmapFile.h(46): error C2229: class 'bitmapFile' has an illegal zero-sized array
...\489gui\bitmapFile.h(46): warning C4200: nonstandard extension used : zero-sized array in struct/union
        Cannot generate copy-ctor or copy-assignment operator when UDT contains a zero-sized array
...\489gui\bitmapFile.h(48): error C2229: class 'bitmapFile' has an illegal zero-sized array

Here is the code it's referring to...
(45) RGBQuad				aColors[];<br />
(46) BYTE				aBitmapBits[];<br />
(47)<br />
(48) bool endOfBitmap;<br />


I know what it says but I can't define the array sizes at compile time because they will change depending on information in the header. What can I do to get this working? Thanks in advance.
GeneralRe: illegal zero-sized array Pin
Member 211821713-Jan-05 20:59
Member 211821713-Jan-05 20:59 
GeneralRe: illegal zero-sized array Pin
KaЯl14-Jan-05 1:51
KaЯl14-Jan-05 1:51 
GeneralRe: illegal zero-sized array Pin
LighthouseJ14-Jan-05 3:41
LighthouseJ14-Jan-05 3:41 
GeneralRe: illegal zero-sized array Pin
KaЯl14-Jan-05 3:52
KaЯl14-Jan-05 3:52 
GeneralRe: illegal zero-sized array Pin
LighthouseJ14-Jan-05 3:58
LighthouseJ14-Jan-05 3:58 
GeneralRe: illegal zero-sized array Pin
KaЯl14-Jan-05 4:17
KaЯl14-Jan-05 4:17 
GeneralInstallation Packege Pin
Aqueel13-Jan-05 16:06
Aqueel13-Jan-05 16:06 
GeneralRe: Installation Packege Pin
Toni7813-Jan-05 17:28
Toni7813-Jan-05 17:28 
GeneralRe: Installation Packege Pin
Aqueel13-Jan-05 17:55
Aqueel13-Jan-05 17:55 
GeneralVC6 - bug - I desparately need advice Pin
peterchen13-Jan-05 12:39
peterchen13-Jan-05 12:39 
GeneralRe: VC6 - bug - I desparately need advice Pin
Ryan Binns13-Jan-05 12:59
Ryan Binns13-Jan-05 12:59 
GeneralRe: VC6 - bug - I desparately need advice Pin
peterchen13-Jan-05 13:17
peterchen13-Jan-05 13:17 
GeneralRe: VC6 - bug - I desparately need advice Pin
IsaacLitingjun13-Jan-05 16:30
IsaacLitingjun13-Jan-05 16:30 
GeneralRe: VC6 - bug - I desparately need advice Pin
Ryan Binns13-Jan-05 17:32
Ryan Binns13-Jan-05 17:32 
GeneralRe: VC6 - bug - I desparately need advice Pin
Stephen Muccione14-Jan-05 1:52
Stephen Muccione14-Jan-05 1:52 
Generalpointer declaration Pin
Oriented13-Jan-05 12:38
Oriented13-Jan-05 12:38 
GeneralRe: pointer declaration Pin
Michael Dunn13-Jan-05 12:58
sitebuilderMichael Dunn13-Jan-05 12:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.