07-30-2005, 11:42 AM
Hi,
If i have a working inpout32.dll and a corresponding definition file can someone tell me how to make a library and how to use it?
(You can get the dll from http://www.logix4u.net/)
Contents of definition file inpout32drv.def:
LIBRARY INPOUT32
EXPORTS
Inp32 @1
Out32 @2
How to make a lib file (how shall i name it) and how to use it?
Do i have to make a .bi file?
If so what are the contents of this file?
Maybe this?
inpout32.bi:
Declare Function Inp Lib "inpout32.dll" Alias "Inp32" (ByVal PortAddress As Integer) As Integer
Declare Sub Out Lib "inpout32.dll" Alias "Out32" (ByVal PortAddress As Integer, ByVal Value As Integer)
Need some help!
Thanx
If i have a working inpout32.dll and a corresponding definition file can someone tell me how to make a library and how to use it?
(You can get the dll from http://www.logix4u.net/)
Contents of definition file inpout32drv.def:
LIBRARY INPOUT32
EXPORTS
Inp32 @1
Out32 @2
How to make a lib file (how shall i name it) and how to use it?
Do i have to make a .bi file?
If so what are the contents of this file?
Maybe this?
inpout32.bi:
Declare Function Inp Lib "inpout32.dll" Alias "Inp32" (ByVal PortAddress As Integer) As Integer
Declare Sub Out Lib "inpout32.dll" Alias "Out32" (ByVal PortAddress As Integer, ByVal Value As Integer)
Need some help!
Thanx