Re: Newbie Question



 DEVELOP > c-Plus-Plus > Re: Newbie Question

LINK TO THIS PAGE  


rating :  0   |  0


  Page 1 of 1
Topic: DEVELOP > c-Plus-Plus
User: "Roel Schroeven"
Date: 09 Jul 2003 05:02:43 AM
Object: Re: Newbie Question
In article <e1c2c6d9.0306300538.6b4d591a@posting.google.com>, Eric Dillard wrote:

struct BGRColor
{
BGRColor() {}
BGRColor(byte R, byte G, byte B) : m_R(R), m_G(G), m_B(B) {}
byte m_B;
byte m_G;
byte m_R;
};

I'm trying to compile my application and visual c++ keeps give me
error message
( error C2629: unexpected 'struct BGRColor ('). This piece of code is
used in a class header file and seems to work in the project i got it
from. The only different is that the that project uses MFC.

The error is probably caused by code that comes before the struct
declaration. Possibly the problem is not in the same file, but rather in
a previously included header file.
--
"Codito ergo sum"
Roel Schroeven
.

 

NEWER

pg.1232     pg.940     pg.716     pg.544     pg.412     pg.311     pg.234     pg.175     pg.130     pg.96     pg.70     pg.50     pg.35     pg.24     pg.16     pg.10     pg.6     pg.3     pg.1

OLDER