[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

c prog til styring af printerport



Hej
Jeg skal bruge lidt hjælp.

Jeg kan ikke finde ud af at skrive til en printerport. Da min compiler
påstår at den ikke kende comandoen outportb eller inportb .

hvad gør jeg galdt det mest simple prog, her er den source som skulle
kunne gøre det.

#define DATA 0x0378
#include <iostream>

void main(void){
        int val1= 0x81;  /* Data bits 7 og  0 sættes til 1 */
           outportb(DATA, val1);
}

hvad skal jeg gøre anderledes ????

!!!!!!!!!!!! Best Regards !!!!!!!!!!!!!
Lord Nikon A.k.a Daniel Pedersen
e-mail: sslug@sslug
Linux is and will always be the best. Just use It.



 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 20:08 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *