🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #14668

Whats Wrong in this code ???

#14668
From: Umar Kazi
Date: Wed, 06 Aug 2003 14:21
28 lines
1637 bytes
I am trying to read parallel port of PC while using 
windows XP operating system.I am using C++ Builder 4.the source
code i am using is given below, but this doesn't seems to work
could u please help me out, and tell me where i am doing wrong.
will be onliged on responce

#include <iostream.h>
#include <conio.h>
#include <dos.h>
#include <stdio.h>
#include ��BytioXP.h��
#pragma hdrstop

#define baseadd (0x378)
#define status (0x379)
#define control (0x37A)

int main(int argc,char* argv[])

{
int a;
outval(control,5);
a = inpval(status);
}

"BytioXP.h" is the header file provided my interface card 
manufacturer connected to parallel port.
Technical Details
Message-ID: <3f310f05$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-04!sn-xit-01!sn-xit-09!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!newsfeed.mountaincable.net!newsfeed.news2me.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 10cc67,143569703218d259
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-08-06 07:38:09 PST
From: "Umar Kazi" <umarkazi@hotmail.com>
Sender: "Umar Kazi" <umarkazi@hotmail.com>
Reply-To: "Umar Kazi" <umarkazi@hotmail.com>
Subject: Whats Wrong in this code ???
Newsgroups: borland.public.cppbuilder.nativeapi
X-User-Info: 147.188.89.30 147.188.89.30    
NNTP-Posting-Host: 207.105.83.65
Message-ID: <3f310f05$1@newsgroups.borland.com>
Date: 6 Aug 2003 07:21:57 -0700
X-Trace: newsgroups.borland.com 1060179717 207.105.83.65 (6 Aug 2003 07:21:57 -0700)
Lines: 31
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-04!sn-xit-01!sn-xit-09!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!newsfeed.mountaincable.net!newsfeed.news2me.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail