Parallel port with C#
- by Michael S.
Hello, I am trying to send data to LPT1 port with a C# program, unfortunately with no success..
I am using windows 7 x64.
I tried both x86 and x64 (inpoutx64.dll) dll's..
With the x64 dll when I send:
Output(888, 255);
It just continues the program as everything went ok, but i can't see anything on my multimeter (only the static 0.02V)..
I also tried the following with C++:
int main () {
int val = 0;
printf("Enter a value\n");
scanf("%d", &val);
_outp(0x378, val);
getchar();
_outp(0x378, 0);
return 0; }
But it throws an exception:
Unhandled exception at 0x01281428 in ppac.exe: 0xC0000096: Privileged instruction.
I remember once I made something like this work on xp, I hope it's possible on win7 too..
Please help me with this.
Thanks.