首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > C# >

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

2012-01-29 
急救,关于DLL引用问题(高手请进)typedefstructSKYETEK_READER{LPSKYETEK_IDidcharmodel[128]charserialN

急救,关于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;
}

热点排行