Unasafe并在vb.net中修复
[StructLayout(LayoutKind.Sequential, Pack = 1)]
public unsafe struct SGDeviceInfoParam
{
private const int SGDEV_SN_LEN = 15; // Device Serial Number Length
public UInt32 DeviceID;
**这是问题** // 0 - 9
public fixed Byte DeviceSN[SGDEV_SN_LEN + 1]; // Device Serial Number, Length of SN = 15
public UInt32 ComPort; // Parallel device=>PP address, USB device=>USB(0x3BC+1)
public UInt32 ComSpeed; // Parallel device=>PP mode, USB device=>0
public UInt32 ImageWidth; // Image Width
public UInt32 ImageHeight; // Image Height
public UInt32 Contrast; // 0 ~ 100
public UInt32 Brightness; // 0 ~ 100
public UInt32 Gain; // Dependent on each device
public UInt32 ImageDPI; // DPI
public UInt32 FWVersion; // FWVersion
}
答案 0 :(得分:0)
这是我的努力,但我不满意
ThreadPoolExecutor