哪位师兄做过SkyeTek超高频设备的开发 请问,哪位师兄做过SkyeTek超高频设备的开发?有没有相关的中文文档或者Delphi的调用例子给我贴一下. 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 开发包提供的api函数全是用C编写的,几个单元总共大概4000行代码,只有定义和声明,没有具体的实现方法,有大量的struct结构体,如何在delphi里边调用呢?开发包提供了dll 那个英文文档好比天书,只有几个C的例子,但是项目要实现很多功能,怎么可能就那么几个函数,本来我想测试一下几个函数,发现他们的关联很强,用一个函数可能就要把c代码单元的好几个struct要转换过来,超级麻烦,请大家给点意见.这是c的例子部分代码:DWORD WINAPI ThreadProc(LPVOID lpParameter){ LPSKYETEK_DEVICE *devices = NULL; LPSKYETEK_READER *readers = NULL; SKYETEK_STATUS st; unsigned int numDevices; unsigned int numReaders; // comment this out to disable debug SkyeTek_SetDebugger(debug); printf("Discovering reader...\n"); while( !isStop ) { numDevices = SkyeTek_DiscoverDevices(&devices); if( numDevices == 0 ) { Sleep(100); continue; } if( isStop ) return 1; numReaders = SkyeTek_DiscoverReaders(devices, numDevices, &readers); if( numReaders == 0 ) { SkyeTek_FreeDevices(devices,numDevices); Sleep(100); continue; } break; }这是开发包的定义:/** * This discovers all of the devices connected to the host that might * have readers attached to them. * @param lpDevices Pointer to array to popluate. This function will allocate memory. * @return Number of devices found (size of devices array) */SKYETEK_API unsigned int SkyeTek_DiscoverDevices( LPSKYETEK_DEVICE **lpDevices );typedef struct SKYETEK_DEVICE { TCHAR friendly[64]; TCHAR type[64]; TCHAR address[256]; unsigned char asynchronous; unsigned int major; SKYETEK_DEVICE_FILE readFD; SKYETEK_DEVICE_FILE writeFD; void *user; void *internal;} SKYETEK_DEVICE, *LPSKYETEK_DEVICE;晕透了,帮帮忙吧~~~~~~~~~~ 我记得原来在delphi下,调用过sqlite的函数,需要*.obj文件,不知道这里能不能也用这种办法呢? delphi如何判断外部设备和电脑连接的方式是通过网口呢? 我也遇到了同样的问题,我用的是SkyeTek M9,也是提供了一堆C API和dll,但就是不知道如何应用这些API,我也是在做嵌入式开发,是用EVC开发的苦恼中谁来救救我 求7zip的dephi源码和dll。。 未什么装上的组件不能用?请大家帮帮忙!谢谢! 主从表的读取!help me! 关于image的一段代码,求助! 暂别D版,因工作性质转向Java,暂别Delphi 奇怪了,不知道问题在哪里,帮我看看 几个控件的使用方法 〓〓〓〓 请问QQ登录时,选择号码的是什么组件 〓〓〓〓 我电脑中了outlook 病毒, 有没有好的解决方法,用什么杀毒最好, 因为我没有正版杀病毒软件 宽带网上了一切都将基于网络,那时JAVA可神气了我们DELPHI怎么办? 求cxDBTreeList控件实例或用法。 IWMenu的下拉单怎么被form上的IWComboBox覆盖掉
DWORD WINAPI ThreadProc(LPVOID lpParameter)
{
LPSKYETEK_DEVICE *devices = NULL;
LPSKYETEK_READER *readers = NULL;
SKYETEK_STATUS st;
unsigned int numDevices;
unsigned int numReaders; // comment this out to disable debug
SkyeTek_SetDebugger(debug); printf("Discovering reader...\n");
while( !isStop )
{
numDevices = SkyeTek_DiscoverDevices(&devices);
if( numDevices == 0 )
{
Sleep(100);
continue;
}
if( isStop )
return 1; numReaders = SkyeTek_DiscoverReaders(devices, numDevices, &readers);
if( numReaders == 0 )
{
SkyeTek_FreeDevices(devices,numDevices);
Sleep(100);
continue;
}
break;
}
这是开发包的定义:/**
* This discovers all of the devices connected to the host that might
* have readers attached to them.
* @param lpDevices Pointer to array to popluate. This function will allocate memory.
* @return Number of devices found (size of devices array)
*/
SKYETEK_API unsigned int
SkyeTek_DiscoverDevices(
LPSKYETEK_DEVICE **lpDevices
);
typedef struct SKYETEK_DEVICE
{
TCHAR friendly[64];
TCHAR type[64];
TCHAR address[256];
unsigned char asynchronous;
unsigned int major;
SKYETEK_DEVICE_FILE readFD;
SKYETEK_DEVICE_FILE writeFD;
void *user;
void *internal;
} SKYETEK_DEVICE, *LPSKYETEK_DEVICE;晕透了,帮帮忙吧~~~~~~~~~~
苦恼中
谁来救救我