Thread View: pl.comp.lang.c
4 messages
4 total messages
Started by Cezary Kolak (Colok)
Mon, 26 Jan 1998 17:18
C++ Builder i instrukcja port
Author: Cezary Kolak (Colok)
Date: Mon, 26 Jan 1998 17:18
Date: Mon, 26 Jan 1998 17:18
6 lines
754 bytes
754 bytes
Potrzebuję sterować portami. W Pascalu jest instrukcja port[adres] Czy możecie mi pomóc i podać jakąś protezę do Buildera Czarek Colok@mw.mil.pl
Re: C++ Builder i instrukcja port
Author: Sebastian Tylko
Date: Mon, 26 Jan 1998 21:50
Date: Mon, 26 Jan 1998 21:50
15 lines
991 bytes
991 bytes
Cezary Kolak (Colok) wrote:
> Potrzebuję sterować portami.
> W Pascalu jest instrukcja port[adres]
> Czy możecie mi pomóc i podać jakšś protezę do Buildera
W C dostepne sa:
void outport(int port, int slowo)
void outportb(int port, unsigned char bajt)
unsigned char inportb(int port)
Prototypy sa w dos.h
seba@ds5.agh.edu.pl
Re: C++ Builder i instrukcja port
Author: Andrzej Godawski
Date: Mon, 26 Jan 1998 23:07
Date: Mon, 26 Jan 1998 23:07
25 lines
1397 bytes
1397 bytes
> Potrzebuję sterować portami. > W Pascalu jest instrukcja port[adres] > Czy możecie mi pomóc i podać jakąś protezę do Buildera > > Czarek > Colok@mw.mil.pl > > Dokładnie jak napisał Sebastian. Problem w tym, że C++Builder to narzędzie działające w Win32. Instrukcja IN, OUT dostępu do portów jest wrażliwa na poziom ochrony we/wy w trybie wirtualnym i V86. Oznacza to tyle, że możesz czytać z portu cały czas jedną wartość mimo tego, że podajesz z urządzenia zewnętrznego jakieś dane. Rozwiązanie to driver VXD lub zmiana poziomu ochrony aplikacji, korzystającej z dostępu do portów. -=*******************************=- -=* Andrzej Godawski *=- -=* bambosz@bobo.ds5.agh.edu.pl *=- -=*******************************=-
Re: C++ Builder i instrukcja port
Author: Maciej Dems
Date: Tue, 27 Jan 1998 17:45
Date: Tue, 27 Jan 1998 17:45
19 lines
1094 bytes
1094 bytes
Cezary Kolak (Colok) wrote: > > Potrzebuję sterować portami. > W Pascalu jest instrukcja port[adres] > Czy możecie mi pomóc i podać jakąś protezę do Buildera Poszukaj w sieci, sa tam odpowiednie komponenty. Niestetry nie pamietam adresu :( musisz uzyc wyszukiwarki -- "The only people who never fail are those who never try." -- Maciej Dems ul. Wielkopolska 64 m.22, 91-029 Lodz tel:(0-42)510006 mailto:maciek@mail-me.com http://www.kis.p.lodz.pl/~maciek irc nick: Demsik
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads