??? 08/01/11 13:12 Read: times |
#183131 - Parallel Port In VB Responding to: ???'s previous message |
Edgar,
I have to make some bit of guess here as to your hardware environment. You say that you are working with a VB application. That almost for certain indicates that you are working under some version of Windows on a PC type platform. Without knowing exactly what version of Windows that you are working with it is hard to provide specific advice to you. An additional factor that is unknown is what version of VB you are trying to use. You may be messing around with the old old Visual Basic 5 or the somewhat newer Visual Basic 6. These days most new VB work is done with one of the VB.Net packages and so would possibly end up in quite a different type of recommendation to you!! So.... If your Windows is Win98 or Win2K you should be able to access the I/O port addresses for your parallel port hardware. If you are in Windows XP or later then direct port access is not allowed by the OS and you have to jump through some circles to be able to access the parallel port at all. Generally you have to search the web and look for a DLL named GiveIO.dll or InpOut32.dll. Use of one of these DLLs allows a VB6 program to read and write to the parallel port registers. If you are messing around with VB.NET I generally recommend that you drop the idea of messing around with the Parallel port and instead get yourself setup with some type of USB add-on I/O module. Here are some web links to look at. You should have been able to find these yourself via a simple web search. http://www.lvr.com/parport.htm http://www.programmersheaven.com/download/...nload.aspx http://www.lcdinterfacing.info/Interfaci...th-VB6.php http://www.codeproject.com/KB/vb/Inp..._read.aspx Michael Karas |
Topic | Author | Date |
Parallel port | 01/01/70 00:00 | |
Weak question | 01/01/70 00:00 | |
what's that got to do with a '51? | 01/01/70 00:00 | |
Parallel Port In VB | 01/01/70 00:00 | |
Win2K? | 01/01/70 00:00 | |
Yes Win2K | 01/01/70 00:00 | |
Dual-boot | 01/01/70 00:00 | |
CTS/RTS | 01/01/70 00:00 |