Hello Silvio
please look into your exe file:
This is what I mean.
Best regards
Otto
lDemo:=.f.
oLicense:=Tlicense():New(Lic.ini")
oLicense:Readlicense()
If !olicense:lNoFileLicenseFile
If oLicense:lValidLicenseFile
// date or days expiration limit
If oLicense:LicenseFileExpiredOn
cSay:=oLicense:DateExpiredOn
endif
// runcount limit
....
//one year free license
.....
//no expiration - free mode
.....
endif
endif
FUNCTION TXT_ENCRYPT_CHR(f_cTxtEncrypt, f_cFileNameTxtSalva, f_lQuebraLinha)
LOCAL cEncry := ""
LOCAL nFor := 0, cCode := "", nQuebraLinha := 0
Default f_lQuebraLinha := .F.
cEnCry := ENCRYPT(f_cTxtEncrypt,"#Pwh@!")
If !f_lQuebraLinha
FOR nFor := 1 TO LEN(cEncry)
cCode += alltrim(str(ASC(SUBSTR(cEncry,nFor,1)))) + ","
NEXT
cCode := Substr(cCode,1,Len(cCode)-1)
Else
FOR nFor := 1 TO LEN(cEncry)
If nQuebraLinha == 0
cCode += "cVariavel += |"
EndIf
nQuebraLinha ++
cCode += alltrim(str(ASC(SUBSTR(cEncry,nFor,1)))) + ","
If nQuebraLinha > 29
cCode += "|"+CRLF
nQuebraLinha := 0
EndIf
NEXT
cCode := Substr(cCode,1,Len(cCode)-1)
cCode += "|"+CRLF
cCode := StrTran(cCode,"|",Chr(34))
EndIf
If !Hb_isNil(f_cFileNameTxtSalva)
Hb_MEMOWRIT(f_cFileNameTxtSalva,cCode)
EndIf
RETURN AllTrim(cCode)
///////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////
FUNCTION TXT_DECRYPT_CHR(f_cTxtEncrypt)
LOCAL cEncry := "", aChrs := {}
LOCAL nFor := 0, cCode := ""
aChrs := Hb_aTokens(f_cTxtEncrypt,",")
FOR nFor := 1 TO LEN(aChrs)
cCode += Chr(Val(aChrs[nFor]))
NEXT
cCode := Alltrim(Decrypt(cCode,"#Pwh@!"))
RETURN cCode
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: Silvio.Falconi and 101 guests