G
Guest
I have this code:
typedef KPDCUInt8* KPDCPointer;
typedef enum
{
KPDCRed = 0, // Currently, RGB is all we got.
KPDCGreen = 1,
KPDCBlue = 2,
KPDCMaxNumComponents = 8 // The maximum number of components
conceivable.
} KPDCColorComponents;
typedef struct
{
KPDCPointer componentPtr[KPDCMaxNumComponents];
// Array of pointers to the
components,
// indexed by KPDCColorComponents.
} KPDCPixelLayout;
typedef enum
{
KPDC_CameraModelUnknown = 0,
KPDC_ProBackCamera = 0x4000,
KPDC_ProBack645 = 0x4001,
KPDCModelCodes_end
} KPDCModelCodes;
I want to do it in VB .Net. I know how to do structures and enumerators.
What I don't know is what to do about the pointer, and then what to do about
the last enum mentioned. How do I get those values into VB.Net?
typedef KPDCUInt8* KPDCPointer;
typedef enum
{
KPDCRed = 0, // Currently, RGB is all we got.
KPDCGreen = 1,
KPDCBlue = 2,
KPDCMaxNumComponents = 8 // The maximum number of components
conceivable.
} KPDCColorComponents;
typedef struct
{
KPDCPointer componentPtr[KPDCMaxNumComponents];
// Array of pointers to the
components,
// indexed by KPDCColorComponents.
} KPDCPixelLayout;
typedef enum
{
KPDC_CameraModelUnknown = 0,
KPDC_ProBackCamera = 0x4000,
KPDC_ProBack645 = 0x4001,
KPDCModelCodes_end
} KPDCModelCodes;
I want to do it in VB .Net. I know how to do structures and enumerators.
What I don't know is what to do about the pointer, and then what to do about
the last enum mentioned. How do I get those values into VB.Net?