Hi all!
have anybody got an example of tReg32 class?. I tried with samples but i don't get to build my program.
Thanks to all.
#define HKEY_CLASSES_ROOT 2147483648
#define HKEY_LOCAL_MACHINE 2147483650
#define HKEY_CURRENT_USER 2147483649
Function Licencia()
Local c := "Software\Tuprograma\youkey"
Local oReg := TReg32():New( HKEY_CURRENT_USER, C, .F. )
Local aData := Array(1)
Local lLice := .T.
Local cLice := ""
oReg := TReg32():New( HKEY_CURRENT_USER, c, .F. )
If Upper( AllTrim( oReg:Get( "licencia", "" ) ) ) != "SI"
oReg := TReg32():Create( HKEY_CURRENT_USER, c, .F. )
oReg:Set( "licencia", "SI" )
EndIf
oReg:Close()
Return(.t.)
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 55 guests