name = Input.GetText("Nombre"); pass = Input.GetText("Password") if ((name == "") or (pass == "")) then Dialog.Message("Error","Debes expecificar nombre de ususario y contraseņa para registrarte"); else reet = DLL.CallFunction(_SourceFolder.."\\AutoPlay\\Docs\\SHA1Encrypt.dll", "SHA1Encrypt", "\"" ..pass.. "\"", DLL_RETURN_TYPE_STRING, DLL_CALL_STDCALL); Application.SaveValue("Usuarios","Nombre",name); Application.SaveValue("Usuarios","Password",reet); Input.SetText("return", reet); error = Application.GetLastError(); if (error ~= 0) then Dialog.Message("Error", _tblErrorMessages[error], MB_OK, MB_ICONEXCLAMATION); else Dialog.Message("OK", "Registro realizado con exito", MB_OK, MB_ICONEXCLAMATION); --Page.Jump("Page2") end end