class RGBValue {
public:
RGBValue ();
RGBValue (short _R, short _G, short _B);
~RGBValue () {};
short R, G, B;
void Assign (short _R, short _G, short _B);
void CopyRGB (RGBValue * SourceRGB);
bool Empty;
//operators
RGBValue operator+(RGBValue&);
RGBValue operator-(RGBValue&);
RGBValue operator/(int&);
RGBValue operator/(float&);
RGBValue operator/(double&);
RGBValue operator*(int&);
RGBValue operator*(float&);
RGBValue operator*(double&);
};
//---------------------------------------------------------------------------
class RGBArray {
public:
RGBArray (int _nx, int _ny);
~RGBArray ();
int nx, ny;
RGBValue ** XY;
...
etc.,
}
At RGBValue ** XY; I get type name expected error (E2303)
compiling with Builder 2007, while I didn't have problems with Builder 5.
Any suggestions?
>At RGBValue ** XY; I get type name expected error (E2303)
Once the final ; is added to the class declaration the code you
supplied compiles without error in RAD Studio 2007. Either you have
left out something that is actually causing the error (a #define macro
for "XY" perhaps) or you have not installed the updates to your
Builder 2007 install.
- Leo
Leo Siefert wrote:
>
>I didn't realize the update was that important.
I don't think that it is the issue here, but I am testing with the
December update applied and don't have any way to test with the
version you are using so I included it as a possibility.
>the update seems to be kind of complicated.
>It is not clear from which one to start
There are two updates to that version. The most important is the
December 2007 update. You should be able to just download it and run
the installer - the installation should be basically automatic.
There is another hotfix available which I have not yet applied to my
installation, but the number of issues it fixes is rather limited.
- Leo