MsComm responds irregularly in a dongle

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance




I'm doing a dongle to protect an application. This is connected to the
serial port and a programm read a string on it.

This library responds sometimes well and other times wrong.

I use VFP7 SP1 in WinXP

This is the source code which gives me problems.

**************************************************************
valorletras= zarray[Letras] && read a value from an array
MSComm1=CreateObject("MSCOMMLib.MSComm")
MSComm1.CommPort = 1
IF mscomm1.PortOpen = .F.
mscomm1.PortOpen = .T.
ENDIF
=INKEY(0.5)
valordeentrada =asc(valorLetras)+32 && encrypts this value
mscomm1.Output = CHR(valordeentrada) && send this encrypted value to the
dongle
=INKEY(0.5)

LOCAL lectura
lectura =0
lectura=mscomm1.input && read the returning value which must be 'z'
**************************************************************
Changing times of waiting with INKEYs statements doesn't work.

Must I do something in order to improve the port's work?

Thanks.

Alejandro Fernandez



.



Relevant Pages

  • Re: Access to parallel port in Linux and WinXP
    ... you want to build a dongle. ... known public key of the program, and the other being the secret private ... Then the program encrypts that string with its public key and sends it ... If a cracker can intercept the program ...
    (comp.security.misc)
  • Re: Gekauftes Eagle - Cracken erlaubt?
    ... dass Kunden die Updates untereinander ... Für dieses Programm wurde damals ... wurde gegen Dongle entschieden. ... > Ein Kunde der die Software für xxx.xxx Euro kauft ist doch ...
    (de.sci.electronics)
  • Re: Dongel kopieren
    ... Im Ernst, wenn ein Programm als Crack im Umlauf ist, und dann falsch ... dass im Dongle Codestücke gespeichert sind. ... Der eigentliche write-SystemCall wurde aus dem Dongle ...
    (de.sci.electronics)
  • Re: USB Stick als dongel?
    ... dass Dongle in Besprechungen sogar ein Argument ... >> gegen ein Programm ist. ... USB-Stick kannst Du kopieren. ... Next by Date: ...
    (de.comp.lang.delphi.misc)
  • Re: USB Stick als dongel?
    ... dass Dongle in Besprechungen sogar ein Argument ... "Hardware an seinen Rechner stecken" damit das Programm ... Prev by Date: ... Next by Date: ...
    (de.comp.lang.delphi.misc)