제목그대로 C에서의 union을 델파이에서 어떻게 구현되는지 알려주세요.
흑흑... 급합니다... 꼭 알려주세요...
typedef union db_data {
DB_INT i;
DB_SHORT sh;
DB_FLOAT f;
DB_DOUBLE d;
DB_POINTER p;
DB_OBJECT *op;
DB_TIME time;
DB_DATE date;
DB_TIMESTAMP utime;
DB_MONETARY money;
DB_COLLECTION *set;
DB_COLLECTION *collect;
DB_ELO *elo;
DB_ERROR error;
DB_IDENTIFIER oid;
DB_NUMERIC num;
DB_CHAR ch;
DB_POINT point;
DB_SIMPLELINE sline;
DB_RECTANGLE rect;
DB_POLYLINE pline;
DB_POLYGON pgon;
DB_CIRCLE circ;
DB_ELLIPSE ellip;
} DB_DATA;
type
TMessage = record
Msg: Cardinal;
case Integer of
0: (
WParam: Word;
LParam: Longint;
Result: Longint);
1: (
WParamLo: Word;
WParamHi: Word;
LParamLo: Word;
LParamHi: Word;
ResultLo: Word;
ResultHi: Word);
end;
나현진 께서 말씀하시기를...
> 제목그대로 C에서의 union을 델파이에서 어떻게 구현되는지 알려주세요.
> 흑흑... 급합니다... 꼭 알려주세요...
>
>
> typedef union db_data {
>
> DB_INT i;
> DB_SHORT sh;
> DB_FLOAT f;
> DB_DOUBLE d;
> DB_POINTER p;
> DB_OBJECT *op;
> DB_TIME time;
> DB_DATE date;
> DB_TIMESTAMP utime;
> DB_MONETARY money;
> DB_COLLECTION *set;
> DB_COLLECTION *collect;
> DB_ELO *elo;
> DB_ERROR error;
> DB_IDENTIFIER oid;
> DB_NUMERIC num;
> DB_CHAR ch;
> DB_POINT point;
> DB_SIMPLELINE sline;
> DB_RECTANGLE rect;
> DB_POLYLINE pline;
> DB_POLYGON pgon;
> DB_CIRCLE circ;
> DB_ELLIPSE ellip;
> } DB_DATA;