Hallo Tweakers,
Ik ben bezig met een kleine webpagina waarmee je een printerpoort kan aansturen;
Nou heb ik het volgende gevonden:
http://www.geekhideout.com/iodll.shtml
En ik heb het gedownload en ik heb de io.dll in mijn bin map geplaatst.
Maar nu lukt het maar niet om die aan de praat te krijgen, Ik krijg contant de error:
Unable to load DLL 'io.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
Ik gebruik Microsoft Visual Web Developer.
Ik gebruik gewoon het bijbehoorende stukje code:
Hebben jullie enig idee wat ik fout doe ?
Alvast bedankt,
Ik ben bezig met een kleine webpagina waarmee je een printerpoort kan aansturen;
Nou heb ik het volgende gevonden:
http://www.geekhideout.com/iodll.shtml
En ik heb het gedownload en ik heb de io.dll in mijn bin map geplaatst.
Maar nu lukt het maar niet om die aan de praat te krijgen, Ik krijg contant de error:
Unable to load DLL 'io.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
Ik gebruik Microsoft Visual Web Developer.
Ik gebruik gewoon het bijbehoorende stukje code:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
| Private Declare Sub PortOut Lib "IO.DLL" (ByVal Port As Integer, ByVal Data As Byte) Private Declare Sub PortWordOut Lib "IO.DLL" (ByVal Port As Integer, ByVal Data As Integer) Private Declare Sub PortDWordOut Lib "IO.DLL" (ByVal Port As Integer, ByVal Data As Long) Private Declare Function PortIn Lib "IO.DLL" (ByVal Port As Integer) As Byte Private Declare Function PortWordIn Lib "IO.DLL" (ByVal Port As Integer) As Integer Private Declare Function PortDWordIn Lib "IO.DLL" (ByVal Port As Integer) As Long Private Declare Sub SetPortBit Lib "IO.DLL" (ByVal Port As Integer, ByVal Bit As Byte) Private Declare Sub ClrPortBit Lib "IO.DLL" (ByVal Port As Integer, ByVal Bit As Byte) Private Declare Sub NotPortBit Lib "IO.DLL" (ByVal Port As Integer, ByVal Bit As Byte) Private Declare Function GetPortBit Lib "IO.DLL" (ByVal Port As Integer, ByVal Bit As Byte) As Boolean Private Declare Function RightPortShift Lib "IO.DLL" (ByVal Port As Integer, ByVal Val As Boolean) As Boolean Private Declare Function LeftPortShift Lib "IO.DLL" (ByVal Port As Integer, ByVal Val As Boolean) As Boolean Private Declare Function IsDriverInstalled Lib "IO.DLL" As Boolean |
Hebben jullie enig idee wat ik fout doe ?
Alvast bedankt,