Mega Code Archive

 
Categories / Delphi / Examples
 

Readports

For reading ports under Windows: TVicHW32 Version 3.0 is an excellent tool that I use, and a demo version can be downloaded from http://www.entechtaiwan.com/tools.htm New features in TVicHW32 3.0 include: - tested under Windows 98 and Windows NT 5.0 beta; - map up to 16 physical memory areas; - Mem[], MemW[] and MemL[] properties for easy access to mapped memory; - advanced LPT support includes access to any pin on any LPT port, as well as interrupt-driven buffered input; - optional keyboard scan-code monitoring; - all hardware interruptions are now declared as "shared", allowing you to use interruptions which were inaccessible in previous versions (from the keyboard, HD, network card, mouse and so on); - native, fast OCX written in MSVC++; - Delphi 4, Borland C++ Builder 3.0, MSVC++ 6.0 and Visual Basic 6.0 support added; - many test examples for Delphi, C++ Builder, Borland C++, MSVC++, VB 5.0, VB 6.0; // Thank-you, // Bob Voigt (bobvoigt@restechimage.com) // Resolution Technology, Inc. (www.restechimage.com) // Phone (614) 921-0045 FAX (614) 921-0046 ************************************************ Hi Dimitar, if you use ONLY Win95/98 you can use asm IN/OUT instructions but under WinNT will your program failed (privileged instruction). This is obsolete way ... only for testing I think. On DSP I found file dlportio.zip, here is comment: TDLPortIO is a wrapper for the free DriverLINX kernel mode driver. It allows full port IO under Windows 95/98/NT. Comes with a C++ Builder VCL component, Delphi 3/4 VCL component, ActiveX control (for Visual BASIC), DLL version, and example projects for use with C++ Builder and Delphi. Compatible with the shareware package TVicPort. Distributed as CardWare. Includes all source code! It seams to be very interesing but I haven't time to test it. Maybe you can try it and later write about it to the list? Have nice day