CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 1999
    Location
    Islamabad, Pakistan
    Posts
    12

    Read/Send bytes/words through hardware ports

    I have been using QBasic's INP port% and OUT port%, num% commands to read and send bytes through hardware ports. Now, these are not available in Visual Basic. Can anyone help me with this. I have to use some of QBasic subs in Visual Basic.
    Somebody told me to use the C functions: inport(), outport(), and make a windows DLL. I tried it using Borland C 3.1. it worked fine in VB 3, but not with 32-bit versions of VB. Now what can I do to tackle this problem.
    Please note that the ports are not the common serial or parallel ports.


  2. #2
    Join Date
    Dec 1999
    Location
    Israel
    Posts
    101

    Re: Read/Send bytes/words through hardware ports

    Your problem is that you can't call 16-bit dll from 32-bit application of VB. If you need 32-bit dll,
    I have ioport.dll, which performs exactly you want. Just e-mail me, and I'll send it for you.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured