On Aug 7, 2006, at 9:23 PM, Alfred Van Hoek wrote:

With the new plugin sdk, I get "illegal name overloading" when compiling for windows using CW-Mac. Those are:

dbDate
dbTime
dbTimeStamp

as defined in REALplugin.h. The other structs defined in REALplugin.h do not generate compiler errors. The previous SDK did not suffer from this.

Perhaps something trivial, but I don't get it,



Yes, trivial it is, dbDate, dbTime and dbTimeStamp are defined in the Win32 SDK/dbdaoint.h as a DataTypeEnum.

The current REALplugin.h shows a lot of changes:

It used to be:

struct dbDate
{
        short year;
        short month;
        short day;
};

struct dbTime
{
        short hour;
        short minute;
        short second;
};

struct dbTimeStamp
{
        short year;
        short month;
        short day;
        short hour;
        short minute;
        short second;
};


while it now is defined as:

typedef struct
{
        short year;
        short month;
        short day;
} dbDate;

typedef  struct
{
        short hour;
        short minute;
        short second;
} dbTime;

typedef  struct
{
        short year;
        short month;
        short day;
        short hour;
        short minute;
        short second;
} dbTimeStamp;


Reverting those back to the original declarations cures it.

What is the proper way, academically spoken?

Alfred



_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to