PDA

Click to See Complete Forum and Search --> : need help with ports


ariel
Feb 12th, 2001, 11:30 AM
i need help programing for com & printer ports
looking for information

contact at ari74el@hotmail.com


thanx

Warmaster199
Mar 27th, 2001, 08:40 AM
What language are you looking for? If you are looking for C or C++ code, then I can help alot. If it's VB, then you will have to use the MSComm control. I can't really help if it's VB.

Amon Ra
Apr 6th, 2001, 10:55 PM
I am currently writing a dll in c++ to allow vb to send data to the port. :)

Amon Ra
Apr 6th, 2001, 10:57 PM
WarMaster, would you know how to access to the parallel port in win nt or win 2k? I would be really interested :) thx in advance

Warmaster199
Apr 7th, 2001, 03:44 PM
I have only heard things on Win NT based OS'es and I don't like it one bit(sorry:( ). I have never ever used an NT based system, I've only used Win 9x based. The problem with NT is that it restricts direct hardware access. You can only do direct hardware access if you do it with a driver.

For parallel port(printer port), try this C code. There's no guaranty that it'll work(you'll get a "priviledged exception" error). This is NOT my code, it's from the net.

Warmaster199
Apr 7th, 2001, 03:47 PM
...And here's the serial port C code. I say the same as above: It may not work in NT, but give it a try :)

Amon Ra
Apr 7th, 2001, 08:19 PM
Error! Thanks though. The dll I am developing is for win9.x anyways :)

Warmaster199
Apr 10th, 2001, 07:35 AM
No problem. I found that as I was looking for things for my OS. Comm support is a good feature, but that file will need some mod's