Sobre IsPrinter

Sobre IsPrinter

Postby Willi Quintana » Thu Aug 23, 2007 12:51 am

Hola amigos,
Encontre esto escrito para Dephi, se podra convertir a Harbour??
Salu2


function IsPrinter : Boolean;
Const
PrnStInt : Byte = $17;
StRq : Byte = $02;
PrnNum : Word = 0; { 0 para LPT1, 1 para LPT2, etc. }
Var
nResult : byte;
Begin (* IsPrinter*)
Asm
mov ah,StRq;
mov dx,PrnNum;
Int $17;
mov nResult,ah;
end;
IsPrinter := (nResult and $80) = $80;
End;
User avatar
Willi Quintana
 
Posts: 1022
Joined: Sun Oct 09, 2005 10:41 pm
Location: Cusco - Perú

Postby Antonio Linares » Thu Aug 23, 2007 8:50 am

Willi,

> Int $17;

Ese código es para 16 bits, no para 32 bits

De todas formas, Harbour/xHarbour proporcionan IsPrinter()
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42151
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin para Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 64 guests