Inportb and outportb in C++?

Follow
  • Follow publicly
  • Follow privately
  • Unfollow
what version of borland C++ support the
inportb and outportb functions.

how do i use this function in VC++???


tnx
Best Answer
Well I'm not sure that one version will support and others won't. I think it has to do more with including the dos.h header file. Not entirely sure on that though.

I just got it to work in Dev-C++ which is a great free IDE http://www.bloodshed.net/devcpp.html its fast and you dont need all the included crap that comes with VC++. But if you want to use VC++ try this code . .


#include <dos.h>


int main(void)
{
int outportb (unsigned int port, int value);
unsigned int outport (unsigned int port, unsigned int value);
int outp (unsigned int port, int value);
unsigned int outportw (unsigned int port, unsigned int value);

outportb(0x9D4,0xc9);
}
  • Rate
  • Comment
Sign In 

to add your answer

No other Answers

Who is following this question?

    %
    BEST ANSWERS
    Member since:
    Points: Points: Level
    Total answers:
    Points this week:
    Follow
     
    Unfollow
     
    Block
     
    Unblock