Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> Test Print Is Online
/]/]@t
post Oct 23 2006, 11:51 AM
Post #1


Newbie
*

Group: Members
Posts: 1
Joined: 23-October 06
Member No.: 32,084



Test print is OnLine

CODE
Function PrinterOnLine : Boolean;
Const PrnStInt : Byte = $17;
      StRq : Byte = $02;
      PrnNum : Word = 0; { 0 para LPT1, 1 para LPT2, etc. }
Var   nResult : byte;

Begin (* PrinterOnLine*)

Asm
  mov ah,StRq;

  mov dx,PrnNum;

  Int $17;

  mov nResult,ah;
end;

  PrinterOnLine := (nResult and $80) = $80;

End;


Error:

CODE
[Warning] Funcoes.pas(204): Unsafe code 'ASM'
Go to the top of the page
 
+Quote Post
Saint_Michael
post Oct 23 2006, 09:10 PM
Post #2


$p4m 0n j00 $h4m3 m3 0nc3 $p4m 0n m3 $h4m3 m3 7\/\/1c3
*********************

Group: [HOSTED]
Posts: 6,304
Joined: 21-September 04
From: 9r33|\| 399$ 4|\|D 5P4/\/\
Member No.: 1,218
T17 GFX Crew



Although I don't know this type of programming it would help to know what this is used for and what not. Just posting code doesn't help any members who might have questions about what your post is about or what problems you might have with it.
Go to the top of the page
 
+Quote Post
osknockout
post Oct 24 2006, 10:22 PM
Post #3


Super Member
*********

Group: Members
Posts: 396
Joined: 14-November 04
From: Elysium
Member No.: 2,280



QUOTE
Although I don't know this type of programming it would help to know what this is used for and what not. Just posting code doesn't help any members who might have questions about what your post is about or what problems you might have with it.

Actually, St. Michael, it isn't really that arcane.

Ok, /]/]@t, from the looks of it, your program should work fine.
- Checks printer status, right? -

It's just that your compiler/assembler
either a)doesn't like asm or b)is paranoid.
Probably because you left nResult as a variable.
In either case, turning warnings off should solve the problem.

And I hate to say it, but Saint_Michael's right. Specify your post next time.
Don't expect someone like me to come by and say. *Oh! That's obvious.* biggrin.gif

Btw. what compiler/assembler are you using there?
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. The Naruto Online Game(31)
  2. How do you test your php code(75)
  3. Halo Pc Online(12)
  4. Know Of Any Online Games Like Runescape Or Ragnarok?(42)
  5. Coke Music(6)
  6. Anyone Up For Halo 2 Online(4)
  7. Dofus Online(10)
  8. Age Of Empires 2 The Conquerors Multiplayer Online(19)
  9. Pet/animal Care Forum(18)
  10. Do You Believe In Psychologic Tests?(13)
  11. Private Server Ro .(157)
  12. Pay With Google Checkout. Payment Gateway By Google.(8)
  13. Grand Theft Auto San Andreas Online Multiplayer Mode(10)
  14. How Do I Make My Own Private Online Server Please Help Me Out.thank You For Your Time.(22)
  15. Boltblue: Beware!(14)
  1. How To Start An Online Business(21)
  2. Credit System V2.0 Online(15)
  3. Help Me Find An On-line Degree School(4)
  4. Im Addicted To Online Forums Hahaha(8)
  5. Slavehack(3)
  6. Test Of The Bible : 2012(22)
  7. Make Money Online Blog(1)
  8. Watch Free Movies And Tv Shows Streaming Online!(3)
  9. Please Can You Review My Blog(3)
  10. How To Print In Php(9)
  11. Play Forex Online(1)
  12. Make An Online Game To Earn Money(2)
  13. Php Guest Online Script(0)


 



- Lo-Fi Version Time is now: 24th July 2008 - 12:56 PM