[BCC32]: Adressen parellel porten uitlezen

Pagina: 1
Acties:

  • arnova
  • Registratie: Augustus 2001
  • Laatst online: 11:16

arnova

weet veel, maar niet alles

Topicstarter
offtopic:
Ik word er dus echt helemaal ziek van dat die search het nog steeds niet doet


Anyway, dit heeft vast al eens iemand gepost maar ik kan het dus niet vinden (zie boven). Maar weet iemand hoe je met een Windows 32bit C compiler (bcc32) de adressen van je parallel porten kan uitlezen zoals je dat vroeger in dos doet door 0040:00xx (bios data area) uit te lezen? Of kan (mag) dit niet in 32bits mode?

ESP PV-Boiler Controller https://github.com/arnova/pvboiler


Verwijderd

Het leuke is.. ik weet dat ik het antwoord ooit gepost heb inc sample source maar kan 'm ook niet terug vinden |:(

  • Creepy
  • Registratie: Juni 2001
  • Laatst online: 10:45

Creepy

Tactical Espionage Splatterer

http://www.lvr.com/jansfaq.htm
IMHO DE site als je met de LPT poort werkt.
Q: My company has a product that connects to the parallel port. The process of finding the port address via WIN95's properties window is too much for some customers - we'd like the program to be able to find the address itself without needing the customer to find and enter the port
address. How can we find a parallel port's address under software control?
Met een mooie oplossing eronder :)
From Dominic On: Option 3 is difficult in Windows 95. I tested many PCs and found that the byte location of the port address is different from one PC to another. But in windows NT it's OK. Based on the 3 options above, I came up with a solution: 1. Use an API call to detect which platform is running. (95 or NT) 2. If 95, use Toolhelp32ReadProcessMemory() function to find the port address. 3. If NT, read the port address from the registry. My application/DLL runs OK in windows 95. But when it runs in NT, I receive an error that Toolhelp32ReadProcessMemory() is not found in the Kernel32. Therefore, when I release my program/DLL, I have to compile conditionally in 2 versions (Windows 95 and NT).
Code (C) is er ook te vinden.

"I had a problem, I solved it with regular expressions. Now I have two problems". That's shows a lack of appreciation for regular expressions: "I know have _star_ problems" --Kevlin Henney