Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2001-07

(no subject)

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

art

Hello fpc-pascal,

How i can write to hardware ports(in Turbo Pascal port[adr]:=number) under win32 version of fpc?
Maybe i need use winapi for it?
Can you post small example, please.

Best regards,
art

Reply by email

Balogh, Karoly (Charlie/iNQ
to art

Hi,

art wrote
How i can write to hardware ports(in Turbo Pascal port[adr]:=number) under win32 version of fpc? Maybe i need use winapi for it? Can you post small example, please.

AFAIK, you cannot do this, under Win32. This is not an FPC limitation, but a limitation of Win32. You need to write a device-driver (VxD) for direct port access.

I'm not that good in Win32 programming, so maybe i'm wrong, but the Win32 ppl will fix me for sure, in that case.

Bye,

Charlie/iNQ & cORE.oRGaNiZiNg - #http://core.kign.org# .:%[ Cybernetic Hydraulic Android Responsible for ]%:. .:%[ Logical Infiltration and Exploration ]%:. .:%[ Member of TeamOS/2 Hungary ]%:. .:%[ Member of Hungarian Amiga User Group ]%:.

Reply by email