   Hardware IO
  OK, I've been programming for a while now, and I've recently been looking into hardware IO. I've found resources for using the LPT1 and PC speaker, but not much else.Does anyone know of and places I should look? And yes, I've tried google.   Look, one of the few who hasn'tasked Salsa for an Avatar.Nor do I follow the trend of putting "I don't follow trends" in your sig.Wait...EDIT:   OK, I've just come across some functions that are used for IO. inb, outb and repinsb. On that site it said I could communicate with the serial port by passing ox2f8 as the port address, but what if I wanted to use PS2 or USB or something.Well, I'm going to run this by MSDN and see what I mget.[edited by - Tooko on February 13, 2004 5:53:48 AM]
  Seems like you driver development or something ...This might be interesting.http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gstart/hh/gstart/gs_intro_031j.asp ;  Yeah, I had a look at that but I''m looking at specifics. Looking in MSDN again, I found that inp and outp are used for port IO, and are defined in conio.h. So, including conio and all the libraries it said to, but it still can''t find the code when linking.Argh!   Look, one of the few who hasn''t   asked Salsa for an Avatar.Nor do I follow the trend of putting "I don''t follow trends" in your sig.Wait... ;  In Windows you can read and write to serial/parallel ports just by using CreateFile().  It looks something like:HANDLE hCOM=CreateFile("COM1",GENERIC_WRITE,0,NULL,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,NULL);and then to send data:DWORD size;//will hold number of bytes sentWriteFile(hCOM, "Hello", strlen("Hello"), &size, NULL);Hope that helps a bit. ;  Yeah, I looked at that but it was hard to use, as I had nothing that plugs into my serial or parallel ports.Although, I finally worked out how to link those outp and inp now all I have to do is find out my port addresses. And they''re not listed in the device manager, as I was told they were.   Look, one of the few who hasn''t   asked Salsa for an Avatar.Nor do I follow the trend of putting "I don''t follow trends" in your sig.Wait... ;  I like:http://www.epanorama.net/index.php lonesockPiranha are people too. 