Help writing directly to Hardware port in Borland Visual C++ 5

This is a discussion on Help writing directly to Hardware port in Borland Visual C++ 5 within the C++ Programming forums, part of the General Programming Boards category; In Borlandīs Visual C++ 5 itīs impossible to use such functions as outpw,inpw, etc.. because they no longer exists. How ...

  1. #1
    Jacob
    Guest

    Help writing directly to Hardware port in Borland Visual C++ 5

    In Borlandīs Visual C++ 5 itīs impossible to use such functions as outpw,inpw, etc.. because they no longer exists. How can I write or read in/from hardware ports in this program? Is there a solution to my problem? Thank for your time.

  2. #2
    Registered User
    Join Date
    Sep 2001
    Posts
    18
    Well in C/C++ for UNIX systems it was easy!
    all of the devices are stored in /dev
    so all I did was open streams to all of them, OR took some of Linus's code and added to the hardware functions...

    Otherwise all you can do is Program a Chip and sodder it on...

    For Windows and other systems, I dont know, I have had many questions similar to that but I could help them either, if you do find out lemme know at
    haxor_servers@hotmail.com

    Here is what it would look like
    Code:
    ofstream a_device;
    a_device.open("/dev/eth0");
    a_device<<//Yata yata BECAREFUL WHAT U ADD HERE, u coulld permemnantly kill the device!
    a_device.close();
    HACKERS MANIFESTO (NOTE MOST WAS CUT OFF) (PEOPLE SAID IT WAS TOO LONG)
    This is our world now... the world of the electron and the switch, the beauty of the baud.
    · We make use of a service already existing withoutpaying for what could be dirt-cheap if it wasn't run by profiteering gluttons, and you call us criminals.
    · We explore... and you call us criminals.
    · We seek after knowledge... and you call us criminals.
    · We exist without skin color, without nationality, without religious bias... and you call us criminals.
    · You build atomic bombs, you wage wars, you murder, cheat, and lie to us and try to make us believe it's for our own good, yet we're the criminals.

    Yes, I am a criminal. My crime is that of curiosity. My crime is that of judging people by what they say and think, not what they look like. My crime is that of outsmarting you, something that you will never forgive me for.

    I am a hacker, and this is my manifesto. You may stop this individual,but you can't stop us all... after all, we're all alike.
    +++The Mentor+++

  3. #3
    Registered User
    Join Date
    Oct 2001
    Posts
    375
    Same way you do for other Windows compilers:
    See this thread from the Windows board.
    Allegro precompiled Installer for Dev-C++, MSVC, and Borland: http://galileo.spaceports.com/~springs/

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Writing Directly to Hard Disk Sectors
    By ali_aslam in forum Linux Programming
    Replies: 2
    Last Post: 07-27-2007, 02:29 AM
  2. Accessing hardware directly (equivalent) in XP
    By Trauts in forum Windows Programming
    Replies: 7
    Last Post: 01-30-2003, 11:35 AM
  3. Writing directly to floppy.
    By someonenearHim in forum C Programming
    Replies: 2
    Last Post: 12-12-2001, 06:51 PM
  4. Writing directly to sectors on a floppy.
    By someonenearHim in forum C Programming
    Replies: 0
    Last Post: 12-12-2001, 01:44 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21