|
-
April 21st, 1999, 03:51 AM
#1
How to use API to replace _inp() function
When I use the _inp() and _outp() function in Win98, the application works well. But in NT workstation, it can not work. Why, and how to solve this problem? I use these two functions to read from and write to the Serial Port register.
I use these two functions as following:
unsigned char result;
unsigned short ppport = 0x2EB;
result = _inp( ppport );
_outp( ppport, (result | 0x80));
_outp( 0x2E8, 21 );
_outp( 0x2E9, 0x00 );
_outp( 0x2EB, (result & 0x7F));
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|