Hello,
I need to interface with 2 parallel ports ideally with windows7, 32 bit system. Not a modern approach I know. The PC I have has a parallel port using LPT1 set at address &H0378. I have installed a PCI expansion card (rosewell RC-304). Windows 7 has automatically assigned resources from &HDCC8 to this card, calling it LPT2.
I can use libraries such as inpout32.dll from logix4u to control the first parallel card as needed. However, such libraries cannot control the second card because the functions in them use a short integer address; &HDCC8 is out of range for short. I am not well versed in memory address spaces.
Has anyone figured out how to get around this problem?
Is it possible to force windows 7 to allocate a specific memory range to the device?
Is it possible to convert the address for the second card back to a short integer, and still have it in the same location or is memory truly continuous and thus this memory space is not accessible to the typical port control dlls?
Is there another way to address the memory space directly without having to figure out my own driver?
for reference I am using VB.net 2010 for my programming
thank you in advance
I need to interface with 2 parallel ports ideally with windows7, 32 bit system. Not a modern approach I know. The PC I have has a parallel port using LPT1 set at address &H0378. I have installed a PCI expansion card (rosewell RC-304). Windows 7 has automatically assigned resources from &HDCC8 to this card, calling it LPT2.
I can use libraries such as inpout32.dll from logix4u to control the first parallel card as needed. However, such libraries cannot control the second card because the functions in them use a short integer address; &HDCC8 is out of range for short. I am not well versed in memory address spaces.
Has anyone figured out how to get around this problem?
Is it possible to force windows 7 to allocate a specific memory range to the device?
Is it possible to convert the address for the second card back to a short integer, and still have it in the same location or is memory truly continuous and thus this memory space is not accessible to the typical port control dlls?
Is there another way to address the memory space directly without having to figure out my own driver?
for reference I am using VB.net 2010 for my programming
thank you in advance