C++中定義結構
typedef struct{
unsign long SurceType; /* Type of the device */
unsign ling rsrvd; /* Reserved */
char Name; /* Device model name
char NameInOS; /* Device model name in OS
unsign long PortType; /* Port type */
cdPortDescripUnion u; /* Union of I/O port descriptor */
} cdSourceInfo;
其中cdPortDescripUnion型別為以下結構體
typedef union {
char* USB;
char* IEEE1394;
#else
char* STI;
char* WIA;
cdPortDescripRsrvd rsrvd;
} cdPortDescripUnion;
cdPortDescripRsrvd為另一個union
請問我在PB中如何定義cdSourceInfo這個結構體
uj5u.com熱心網友回復:
直接用pb無解了,你可以用C或者delphi之類的再封裝一個dll,然后再用pb呼叫
uj5u.com熱心網友回復:
struct 和 union 全發出來, 我幫你解。轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/48259.html
標籤:API 調用
上一篇:4月底
