vb control ผ่าน printer port
ผมต้องการใช้ VB ควบตุมผ่าน printer port โดยได้ down load file inpout.dll มาไว้ที่ windows\system32 และขียน code ใน General : Declarations ดังนี้ Private Declare Sub Out32 Lib "InpOut32.dll" (ByVal PortAddress As Integer, ByVal value As Byte) Private Declare Function inp32 Lib "InpOut32.dll" (ByVal PortAddress As Integer) As Byte พอ run program จะขึ้น error "can't find DLL entry point inp32 in inpout32.dll" ไม่ทราบว่าต้องแก้ไขอย่างไรครับ
|