flat assembler
Message board for the users of flat assembler.
  
       
      Index
      > Windows > send printer control code to port LPT1 or C system("STA | 
  
| Author | 
  | 
              
| 
                  
                   LocoDelAssembly 26 Mar 2009, 00:10 
                  sleepsleep, actually you don't need any driver since direct I/O is not really needed, check this serial port example: http://board.flatassembler.net/topic.php?t=6459
 
                  
                As you can see in the last post I couldn't find my code that used LPT port and unfortunately I still can't...  | 
              |||
                  
  | 
              
| 
                  
                   LocoDelAssembly 26 Mar 2009, 00:14 
                  And here you have the system function example:     
                  
                Code: format pe console include 'win32ax.inc' cinvoke system, "cmd.exe" invoke ExitProcess, 0 align 4 ; Just to be safe data import library kernel32, 'kernel32.dll',\ msvcrt,'msvcrt.dll' import kernel32,\ ExitProcess, 'ExitProcess' import msvcrt,\ printf, 'printf',\ system, 'system' end data  | 
              |||
                  
  | 
              
| 
                  
                   sleepsleep 26 Mar 2009, 16:42 
                  cool, thanks locodelassembly  
                  
                i just completed the patch program needed by my client... wat a great relief  | 
              |||
                  
  | 
              
< Last Thread | Next Thread >  | 
    
Forum Rules: 
  | 
    
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.