How to print directly to parallel port
C#
1
Posts
1
Posters
0
Views
1
Watching
-
Hello, I want to print directly to parallel port for fast writing (of-course when i use DMPs). I did following code but it generates an exception telling that it can't handle any device:
TextWriter sw = new StreamWriter("LPT1"); sw.WriteLine("This is a test print!"); sw.Close();
Currently I have working version of it(VB6)Open "LPT1" For Output As #1 Print #1, "Bla,bla,bla...." Close #1
and C++FILE *ptr = fopen("LPT1","w"); fprintf(ptr,"Bla,bla,bla......"); fclose(ptr);
How can I do that? Thanks in advance.