From: Mariano on
Hello,

could somebody include lines of C++ code where I can send data to the
parallel port ? I am using windows vista 64 bits and Visual C++ 2005.

I have already tried _out, outportb and assembler but I could not make any
code work .... I had the same code running on a XP computer but Vista is
killing me.

Thanks a lot in advance,


Mariano
From: Pavel A. on
"Mariano" <Mariano(a)discussions.microsoft.com> wrote in message
news:D94E45C8-C441-4A68-A29C-AFD75B010AB6(a)microsoft.com...
> Hello,
>
> could somebody include lines of C++ code where I can send data to the
> parallel port ? I am using windows vista 64 bits and Visual C++ 2005.
>
> I have already tried _out, outportb and assembler but I could not make any
> code work .... I had the same code running on a XP computer but Vista is
> killing me.
>
> Thanks a lot in advance,
>
>
> Mariano

Use WDK to write drivers, not Visual Studio.
See "Getting started with Windows drivers" in the WDK documentation.
To write a byte to i/o port, use WRITE_REGISTER_UCHAR macro.

Regards,
-- pa


From: Alexander Grigoriev on
I don't believe you had your code running on XP (other than running 16-bit
in VDM).

Look for CreateFile function, device "PRN" or "LPT1", "LPT2", etc.


"Mariano" <Mariano(a)discussions.microsoft.com> wrote in message
news:D94E45C8-C441-4A68-A29C-AFD75B010AB6(a)microsoft.com...
> Hello,
>
> could somebody include lines of C++ code where I can send data to the
> parallel port ? I am using windows vista 64 bits and Visual C++ 2005.
>
> I have already tried _out, outportb and assembler but I could not make any
> code work .... I had the same code running on a XP computer but Vista is
> killing me.
>
> Thanks a lot in advance,
>
>
> Mariano


From: Leo Havmøller on
"Mariano" <Mariano(a)discussions.microsoft.com> wrote in message
news:D94E45C8-C441-4A68-A29C-AFD75B010AB6(a)microsoft.com...
> Hello,
>
> could somebody include lines of C++ code where I can send data to the
> parallel port ? I am using windows vista 64 bits and Visual C++ 2005.

http://www.lvr.com/parport.htm#Programming

Leo Havmøller.