CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Apr 2002
    Posts
    10

    porting Application to windowsNT/2000

    Hi All,
    I have an application in which I am accessing the ports using inp() and outp() functions. I want to port my application to Windows Nt/2000. I tried some drivers available on the internet. But, I couldn't get my application to work with any of them.
    Can anyone help me with this.
    regards.


  2. #2
    Join Date
    May 2000
    Location
    Birmingham, England
    Posts
    213

    Re: porting Application to windowsNT/2000

    the functions you mention use protected instructions - but then I
    imagine you already know that from the error messages you probably got

    what sort of io are you trying to perform ? serial ports ?

    Stitch
    ====================

  3. #3
    Join Date
    Apr 2002
    Posts
    10

    Re: porting Application to windowsNT/2000

    I am using serial as well as parallel port.I wanted to know that how do you normally access ports in Windows NT/2000.

    thanks.


  4. #4
    Join Date
    May 2000
    Location
    Birmingham, England
    Posts
    213

    Re: porting Application to windowsNT/2000

    You need to look at the following functions (to begin with) CreateFile,
    ReadFile,WriteFile. There's more to it than that, my best advice is to
    look these functions up in MSDN. Basically you create a file handle
    and tx/rx by writes and reads respectively.

    Be prepared for a performance drop, the internal structure of Win NT/2k
    doesn't lend itself to fast io


    Stitch
    ====================

  5. #5
    Join Date
    Apr 2001
    Location
    Brisbane, Australia
    Posts
    17
    Howdy,

    I have started looking at a library:

    http://www.beyondlogic.org/porttalk/porttalk.htm

    It enables you to access low level hardware like serial ports and parrallel ports.


    Good Luck and let me know how you go.
    ==========================
    Sid Young
    Sunny Queensland
    Australia (Oz)

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