Skip to search.
  1. Home >
  2. All Categories >
  3. Computers & Internet >
  4. Programming & Design >
  5. Resolved Question
DEICIDE DEICIDE
Member since:
June 28, 2006
Total points:
171 (Level 1)

Resolved Question

Show me another »

Inportb and outportb in C++?

what version of borland C++ support the
inportb and outportb functions.

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


tnx
BasAndit by BasAndit
Member since:
October 27, 2007
Total points:
156 (Level 1)

Best Answer - Chosen by Voters

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);
}
100% 1 Vote
Hi, how did you manage it in DEV-C++. That's a program running in windows (not dos) and doesn't has these function in dos.h directive
Thanks

Report Abuse

Other Answers (0)

No other answers.

Answers International

Yahoo! does not evaluate or guarantee the accuracy of any Yahoo! Answers content. Click here for the Full Disclaimer.

Help us improve Yahoo! Answers. Tell us what you think.