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
http://www.lvr.com/jansfaq.htm
IMHO DE site als je met de LPT poort werkt.
IMHO DE site als je met de LPT poort werkt.
Met een mooie oplossing eronderQ: 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?
Code (C) is er ook te vinden.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).
"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