Hello,
I know a UNION within a UDT doesn't seem to be legit in PB, but I
wrote it below (after the C-code) anyway. That said, how does one
properly combine UDTs and UNIONs to translate the C-code correctly?
-CMR
typedef struct
{
union
{
long lExpMSec;
long lClearExpMSec;
long lRedExpMSec;
};
long lGreenExpMSec;
long lBlueExpMSec;
short nGain;
} SPOT_EXPOSURE_STRUCT;
------------------
[This message has been edited by C.M. Rouleau (edited May 11, 2006).]
I know a UNION within a UDT doesn't seem to be legit in PB, but I
wrote it below (after the C-code) anyway. That said, how does one
properly combine UDTs and UNIONs to translate the C-code correctly?
-CMR
typedef struct
{
union
{
long lExpMSec;
long lClearExpMSec;
long lRedExpMSec;
};
long lGreenExpMSec;
long lBlueExpMSec;
short nGain;
} SPOT_EXPOSURE_STRUCT;
Code:
TYPE SPOT_EXPOSURE_STRUCT UNION lExpMSec AS LONG lClearExpMSec AS LONG lRedExpMSec AS LONG UNION END lGreenExpMSec AS LONG lBlueExpMSec AS LONG nGain AS INT END TYPE
[This message has been edited by C.M. Rouleau (edited May 11, 2006).]
Comment