Search found 11 matches

by Zaaphod
Sun Nov 13, 2016 3:44 am
Forum: InpOut32 (x64)
Topic: Controling mode of PCIe parallel ports
Replies: 0
Views: 30050

Controling mode of PCIe parallel ports

zI'm wondering if anyone has figured out how to get modern PCIe parallel ports into specific modes (spp, ps/2, epp, ecp) I am baffled by this, just when I think I figured out what is going on, suddenly I can't duplicate my results. I have searched all over the web for documentation and the closest I...
by Zaaphod
Wed Jul 27, 2016 11:20 am
Forum: InpOut32 (x64)
Topic: Free Pascal help please
Replies: 14
Views: 38095

Re: Free Pascal help please

I really don't have a use for DLPortWriteULong anyway. I'm just happy to get it working! Thanks again for your help.
by Zaaphod
Sat Jul 23, 2016 1:18 pm
Forum: InpOut32 (x64)
Topic: Free Pascal help please
Replies: 14
Views: 38095

Re: Free Pascal help please

I finally got it working!!! Thank you for all your help here. It was a great help to get your demo working, because then I knew my parallel port was working with InpOut32 and that InpOut32 was also working. I got some help from Marc on the freepascal mailing list about calling C libraries from pasca...
by Zaaphod
Sat Jul 23, 2016 2:43 am
Forum: InpOut32 (x64)
Topic: Free Pascal help please
Replies: 14
Views: 38095

Re: Free Pascal help please

It just occurred to me that your demo program is a dos command program.. I did get it to work. at first I was getting the same results but I was putting in port $378 using a $ to indicate hex, but then I remembered that's a pascal thing... so I put in 888 for the port (decimal of 0x378) and I'm happ...
by Zaaphod
Sat Jul 23, 2016 2:26 am
Forum: InpOut32 (x64)
Topic: Free Pascal help please
Replies: 14
Views: 38095

Re: Free Pascal help please

I checked my bios settings, my parallel port is set to standard mode (SPP) I'm guessing that should work, it's how I always set my ISA cards. I guess it is getting to be old school, but it was such a convenient way to read a few bits and send out a few bits... no need to program an arduino and sever...
by Zaaphod
Mon Jul 18, 2016 9:25 pm
Forum: InpOut32 (x64)
Topic: Free Pascal help please
Replies: 14
Views: 38095

Re: Free Pascal help please

Phil, Thank you for the suggestions. I have tried both inp32() and Out32(), I get identical results. Perhaps you are on to something with the port mode. The parallel ports I am used to were the old ones that you could write to at any time.. then read back what you wrote, and if you forced high pins ...
by Zaaphod
Sat Jul 16, 2016 5:41 pm
Forum: InpOut32 (x64)
Topic: Free Pascal help please
Replies: 14
Views: 38095

Re: Free Pascal help please

Oh, I think I made a mistake and used X64 but it's an x86 program. It's the program that determines which version you use not the host computer I take it. I switched to inpout32 and now I can compile it AND run it... however I'm still not getting the expected results. I added isinpoutdriveropen() as...
by Zaaphod
Fri Jul 15, 2016 10:38 pm
Forum: InpOut32 (x64)
Topic: Free Pascal help please
Replies: 14
Views: 38095

Re: Free Pascal help please

well I'm maybe making progress... I hope. I did get it to compile! YAY. But I get a runtime error when I try to run my program... Boo! Please forgive me if posting my code inline is against some forum rules.. I'm just so close, yet can't quite get it to work. I get The application was unable to star...
by Zaaphod
Fri Jul 15, 2016 9:17 pm
Forum: InpOut32 (x64)
Topic: Free Pascal help please
Replies: 14
Views: 38095

Re: Free Pascal help please

This isn't really that big, I guess I can just paste it in here. I'm thinking I probably have the syntax wrong, this might be a delphi example, I don't know what the syntax would be for freepascal running in Turbo Pascal compatibility mode with the text based IDE. unit DLPortio ; interface Function ...
by Zaaphod
Fri Jul 15, 2016 8:51 pm
Forum: InpOut32 (x64)
Topic: Free Pascal help please
Replies: 14
Views: 38095

Re: Free Pascal help please

Thank you for any help you can offer. It's the last piece to the puzzle and I will have full functionality again if I can get it to work. Until I'm able to post files, I would he happy to email you the sample I have... I'm not sure where I got it from. There was mention of inpout32 here: http://wiki...
by Zaaphod
Tue Jul 12, 2016 1:24 am
Forum: InpOut32 (x64)
Topic: Free Pascal help please
Replies: 14
Views: 38095

Free Pascal help please

I have an old Turbo Pascal DOS program I am trying to port over to windows using Free Pascal. I have got everything working except control of the parallel port, which used to be so easy, but now I find it nearly impossible. I do not know if ImpOut32 (x64) will help me. I downloaded it and tried to c...