读书人

急救关于DLL引用有关问题()

发布时间: 2012-01-29 21:39:32 作者: rapoo

急救,关于DLL引用问题(高手请进)
typedef struct SKYETEK_READER
{
LPSKYETEK_ID id;
char model[128];
char serialNumber[128];
char firmware[128];
char manufacturer[128];
char rid[128];
char friendly[256];
unsigned char isBootload;
unsigned char sendRID;
LPSKYETEK_PROTOCOL lpProtocol;
LPSKYETEK_DEVICE lpDevice;
void *user;
void *internal;
} SKYETEK_READER, *LPSKYETEK_READER;

typedef struct SKYETEK_ID
{
unsigned char *id;
unsigned int length;
} SKYETEK_ID, *LPSKYETEK_ID;

typedef struct SKYETEK_PROTOCOL
{
unsigned short version;
void *internal;
} SKYETEK_PROTOCOL, *LPSKYETEK_PROTOCOL;

typedef struct SKYETEK_ID
{
unsigned char *id;
unsigned int length;
} SKYETEK_ID, *LPSKYETEK_ID;

typedef struct SKYETEK_DEVICE
{
char friendly[64];
char type[64];
char address[256];
unsigned char asynchronous;


unsigned int major;
SKYETEK_DEVICE_FILE readFD;
SKYETEK_DEVICE_FILE writeFD;
void *user;
void *internal;
} SKYETEK_DEVICE, *LPSKYETEK_DEVICE;

/**
* This discovers all of the readers to be found on the devices that
* are passed in.
* @param lpDevices Point to an array of devices
* @param deviceCount Count of devices in the array
* @param lpReaders Pointer to array to popluate. This function will allocate memory.
* @return Number of readers found (size of readers array)
*/
SKYETEK_API unsigned int
SkyeTek_DiscoverReaders(
LPSKYETEK_DEVICE *lpDevices,
unsigned int deviceCount,
LPSKYETEK_READER **lpReaders
);

[解决办法]
问题?



[解决办法]
这些都要 转换的
转换类型 可以去参考C-C#
[StructLayout(LayoutKind.Sequential, Pack = 1)]
public struct SetTimer_Struct
{
public int nVer;
public int nTimerID;
public int Interval;
public string parm;
}

读书人网 >C#

热点推荐