Thread: parallel port

  1. #1
    Registered User
    Join Date
    Jul 2011
    Posts
    3

    parallel port

    Hi dears
    I did not find CB here
    I have xp, codeblocks 10.05
    Pls I need example program in and out to parallel port and any related thing can help
    for programing parallel port
    thanks
    fareez

  2. #2
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Ireland
    Posts
    8,446
    dllimport inpout32, EntryPoint = Out32
    FuncOut (int address, int value)

    dllimport inpout32, EntryPoint = Inp32
    FuncIn (int address)

    That's it, dear.
    Originally Posted by brewbuck:
    Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.

  3. #3
    Registered User
    Join Date
    Jul 2011
    Posts
    3

    test result

    Dear sir
    Thank you.
    The compiler for Code::Blocks 10.05 gave errors for these instructions , what do I need to include ?
    Regards
    Fareez

  4. #4
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Ireland
    Posts
    8,446
    You don't need to include a whole lot of nerve. That you have plenty.
    But you need to include a reading of the forum guidelines.
    Originally Posted by brewbuck:
    Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.

  5. #5
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    Jan Axelson's Lakeview Research

    And in win32, device access begins with CreateFile()
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. parallel port
    By kmp in forum C++ Programming
    Replies: 0
    Last Post: 05-08-2011, 11:06 PM
  2. Parallel Port in XP
    By torqu3e in forum C++ Programming
    Replies: 6
    Last Post: 01-30-2011, 09:33 AM
  3. Using the parallel port in C
    By advancedk in forum C Programming
    Replies: 1
    Last Post: 08-20-2008, 07:15 AM
  4. Parallel port
    By Bill83 in forum C++ Programming
    Replies: 1
    Last Post: 12-02-2005, 01:05 AM
  5. Help with Parallel Port
    By Unregistered in forum C++ Programming
    Replies: 3
    Last Post: 04-16-2002, 10:20 PM