大家好:
我以前调用 动态连接库 时是静态调用的,因为发布时很麻烦哟!!现在我想动态调用,因为这样就可以把动态连接库一快打包了。
静态调用时:procedure FEISC_SetCbPtr_ProtStr(cFunction: Pointer)stdcall; external 'G:\New\Delphi5\FEISC_ISOSample\Feisc.DLL';
function FEISC_NewReader(iPortHnd: Integer ):Integer; stdcall; external 'G:\New\Delphi5\FEISC_ISOSample\Feisc.DLL';
function FEISC_DeleteReader(iReaderHnd: Integer ):Integer; stdcall; external 'G:\New\Delphi5\FEISC_ISOSample\Feisc.DLL';
function FEISC_GetReaderList(iNext: Integer ):Integer; stdcall; external 'G:\New\Delphi5\FEISC_ISOSample\Feisc.DLL';
function FEISC_GetReaderPara(iReaderHnd: Integer;cPara: PChar; cValue: PChar):Integer; stdcall; external 'G:\New\Delphi5\FEISC_ISOSample\Feisc.DLL';
function FEISC_SetReaderPara(iReaderHnd: Integer;cPara: PChar; cValue: PChar ):Integer; stdcall; external 'G:\New\Delphi5\FEISC_ISOSample\Feisc.DLL';
现在我想把动态连接库 Feisc.DLL 放在项目的文件夹AA里。请问动态调用怎么办??????
我以前调用 动态连接库 时是静态调用的,因为发布时很麻烦哟!!现在我想动态调用,因为这样就可以把动态连接库一快打包了。
静态调用时:procedure FEISC_SetCbPtr_ProtStr(cFunction: Pointer)stdcall; external 'G:\New\Delphi5\FEISC_ISOSample\Feisc.DLL';
function FEISC_NewReader(iPortHnd: Integer ):Integer; stdcall; external 'G:\New\Delphi5\FEISC_ISOSample\Feisc.DLL';
function FEISC_DeleteReader(iReaderHnd: Integer ):Integer; stdcall; external 'G:\New\Delphi5\FEISC_ISOSample\Feisc.DLL';
function FEISC_GetReaderList(iNext: Integer ):Integer; stdcall; external 'G:\New\Delphi5\FEISC_ISOSample\Feisc.DLL';
function FEISC_GetReaderPara(iReaderHnd: Integer;cPara: PChar; cValue: PChar):Integer; stdcall; external 'G:\New\Delphi5\FEISC_ISOSample\Feisc.DLL';
function FEISC_SetReaderPara(iReaderHnd: Integer;cPara: PChar; cValue: PChar ):Integer; stdcall; external 'G:\New\Delphi5\FEISC_ISOSample\Feisc.DLL';
现在我想把动态连接库 Feisc.DLL 放在项目的文件夹AA里。请问动态调用怎么办??????
解决方案 »
- 请各位高手进来探索下D7如何应用.Net组件
- 如何查找到特定的IE窗口,然后获得它的接口控制IE中的网页
- 怎样自定义一个函数单元包供所有其他单元调用?
- 最新版FastMM4.76发布,但是使用有问题,请各位测试一下.
- 关于内存网页的存储和读取
- 高手提供一个最简单的访问MS Access MDB数据库文件的例子?
- 如何在form1中的button1.click()事件中,调用 form2.paint();????
- 如何取得DBGrid中总的记录个数???
- Requires a transaction和Supports transactions的概念
- ★★★75分请教一有关调用IE的简单问题★★★
- 关于GPIB协议和RS232串口之间关系的问题。
- sql语句问题,高手帮帮忙。
2。动态调用
http://community.csdn.net/Expert/topic/3601/3601714.xml?temp=.7007105