To set up the 1781-PXBxxx drivers in the Microsoft Windows operating systems, follow the information immediately below. Other program language specific help follows. WINDOWS OPERATING SYSTEMS ========================= >>>Windows 3.1<<< ================= The 1781-PXB demo contains the "VB_WRC.DLL" file that allows it to be used in a Windows environment. This version was written to support the 16-bit mode of operation in Windows 3.1. As such it works quite well with VisualBASIC 3.0. Put "VB_WRC.DLL" in the \windows\system\ directory. >>>Windows95<<< =============== The "PXB95.DLL" file allows it to be used in a Windows95 environment. This version was written to support 32-bit mode of operation in Win95. To use the examples given with Win95, you must replace the references to "VB_WRC.DLL" with "PXB95.DLL". Put "PXB95.DLL" in the \windows\system\ directory. If you anticipate migrating your application to WindowsNT, you may want use the "PXB32.DLL" driver for Win95. See the following section. >>>Windows NT<<< ================ The "PXB32.DLL" file allows it to be used in a WindowsNT environment. This version was written to support 32-bit mode of operation in WinNT and Win95. Put "PXB32.DLL" in the \winnt\system32\ directory. You must install the file "ACCESNT.SYS" in the \winnt\system32\drivers\ directory. After installing these file, RESTART your computer. You must also set up this driver file to run in AUTOMATIC mode. To do this: - go to: the Control Panel - select: Devices - select: ACCESSNT list item - press: the Startup button - select: Automatic radio button - press: OK Examples for 32-bit operation with VB5.0 are provided on the disk. CONSIDERATIONS FOR DIFFERENT PROGRAMMING ENVIRONMENTS Visual Basic 4.0 ================ Although the "vb_wrc.dll" version is not designed to take advantage of the 32-bit capability of VisualBASIC 4.0 the user should keep in mind the following: the included "vb_wrc.dll" is a 16-bit version of a Microsoft Windows dynamic link library. You may experience difficulties using "vb_wrc.dll" in Visual Basic 4.0 if the program you are running or compiling is in 32-bit mode. Should you encounter problems simply change modes in Visual Basic 4.0 to the 16-bit mode of operation and any difficulties should cease. Visual Basic 5 ============== Visual Basic 5 uses 2 different calling conventions in it's 2 different program execution modes. In compiled execution, a visual basic program will use the Pascal calling conventions or a Windows STD call. In interpretive mode, VB5 will only call through a Windows STD call. This means that to run in interpretive mode, another function needs to be used instead of the regular Outport. The VBxxPort functions take care of this function and allow you to make function calls in interpretive mode. Remember, VB5 is Case Sensitive. The function declarations and calls to the DLL must be OutPort, OutPortB, InPort, InPortB or VBOutPort, VBOutPortB, VBInPort, VBInPortB. C/C++ ============ C and C++ use the Pascal calling convention, however, they also append an underscore '_' to the beginning of the function. The "PXB32.DLL" uses the _port for these calls. They are the same as the non-underscored functions in functionality. Other Languages =============== Other languages are supported - one just has to make sure that the call is specified as a Pascal call. Notes on using 16 and 32 bit dll's ================================== Windows 3.1 is a 16-bit operating system; thus the only usable dll under Windows 3.1 is the "VB_WRC.DLL" file. Windows 95 can run 16-bit and 32-bit programs. If you are writing for a 16-bit target platform, the 16-bit "VB_WRC.DLL" should be used. If you are writing for a 32-bit target platform, you must use the 32-bit "PXB32.DLL". WindowsNT has privliged processor instructions that is called; therefore, the only dll that can be used on the Windows NT platform is the "PXB32.DLL". 16-bit and 32-bit operation library functions ============================================= 32-bit: LIBRARY PXB32.DLL EXPORTS InPort @8 InPortB @12 OutPort @6 OutPortB @10 VBInPort @3 VBInPortB @4 VBOutPort @1 VBOutPortB @2 _InPort @7 _InPortB @11 _OutPort @5 _OutPortB @9 16-bit: LIBRARY VB_WRC.DLL EXPORTS InPort @1 InPortB @2 InitAccesDriver @5 OutPort @3 OutPortB @4 Tech Support ============ Please call Western Reserve Controls technical support at 330-762-1611, or send email to sales@wrcakron.com, if you have any questions.