Computer Games Forum

Go Back   Computer Games Forum > Tech > Software

Notices

Reply
 
LinkBack Thread Tools
Old 08-09-2006, 13:30   #1 (permalink)
q12
Registered User
 
q12's Avatar
 
Join Date: May 2006
my devc++

i have dev-c++ v.4992
i wrote this program
#include <stdio.h>
#include <conio.h>
#include <dos.h>
#define LPT1 0x378
int main(void)
{
unsigned char Valor=128; //in binar: 10000000
while( Valor > 0 )
{
outportb(LPT1, Valor); // Portb LPT1
printf("\n LED...");
getch( );
Valor = Valor >> 1;
}
}
and it not compile
what can i do to make-it compile?
i think i must put in include folder of devc++ some x.h or something but i dont now what or where to put.
please help-me.

daca e postat rau si nimeni n-are treaba cu ce e scris aici please dati-mi un forum unde pot primi un raspuns.
aici e vb de cum pot accesa portul paralel lpt1 sa pot aprinde un led pus pe un pin.
 
q12 is offline    Reply With Quote
Advertisment
Reply

  Computer Games Forum > Tech > Software

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +2. The time now is 21:19.


This site is copyrighted ©1997 - 2009, Computer Games Online SRL