typedef struct tagVARIANT {
union
{
struct
{
VARTYPE vt;
union
{
int64_t llVal;
int32_t lVal;
int16_t iVal;
int8_t bVal;
float fltVal;
double dblVal;
double date;
char* cstrVal;
short* bstrVal;
void* pyref;
int8_t* pbVal;
int16_t* piVal;
int32_t* plVal;
int64_t* pllVal;
float* pfltVal;
double* pdblVal;
double* pdate;
char** pcstrVal;
short** pbstrVal;
SAFEARRAY* parray;
VARIANT* pvarVal;
} __VARIANT_NAME_3;
} __VARIANT_NAME_2;
} __VARIANT_NAME_1;
} tagVARIANT;
cgo 处理 union 太痛苦了,大家有什么好的解决办法吗?谢谢。
1
czyt 2023-03-01 23:17:16 +08:00
|
2
czyt 2023-03-01 23:20:49 +08:00
|
3
elechi 2023-03-02 15:32:25 +08:00
OP 这是搞得实时数据库吧
|