Note: Under Windows 98/ME, an application must use the SetPortVal function to write values to an I/O port. Under Windows NT/2000/XP, it is possible to use the _outp/_outpw/_outpd functions instead of using SetPortVal, provided that the InitializeWinIo function has been called beforehand.
>Meu amigo Cláudio. Já fiz de tudo um pouco inclusive retirar a propriedade e colocar o Endereço na Mão.>SetPortVal >This function writes a BYTE/WORD/DWORD value to an I/O port. > >bool _stdcall SetPortVal( > WORD wPortAddr, > DWORD dwPortVal, > BYTE bSize >); >Parameters >wPortAddr >[in] I/O port address > >dwPortVal >[in] Value to be written to the port > >bSize >[in] Number of bytes to write. >Can be 1 (BYTE), 2 (WORD) or 4 (DWORD). >Return Values >If the function succeeds, the return value is true. Otherwise, the function returns false. >Remarks >The SetPortVal function writes a byte, a word or a double word to the specified I/O port. > >Note: Under Windows 98/ME, an application must use the SetPortVal function to write values to an I/O port. Under Windows NT/2000/XP, it is possible to > >>
>>FUNCTION Envia >>LPARAMETERS lcString >> >> lnEnd = Thisform.hex2dec( allt(Thisform.txtEnd.Value) ) >>>>