a ka naj kod per ta mbrojtur database-in e krijuar ne access .mendoj per ta kufizuar per nje kohe te limituar psh 2 muaj e pastaj edhe te kete mundesi ta vazhdoj nese vetem kur blersi paguan per ate sherbim
a ka naj kod per ta mbrojtur database-in e krijuar ne access .mendoj per ta kufizuar per nje kohe te limituar psh 2 muaj e pastaj edhe te kete mundesi ta vazhdoj nese vetem kur blersi paguan per ate sherbim
toni jep me shume info per ekte gje ... database eshte access ca versjoni programi qe perdor kete database ca gjuhe eshte shkrojtur apo bazohet ne ms access ka shume menyra per te bere ketee gje gjithcka varet se cfare ti kerkon per te bere jep me shume info
Forgiving Islamic Terrorists is Gods Duty, Our Duty Is To arrange the Meeting
N. H. Schwarzkopf
tung ardi,
une e kam bere kete ne Access 2002 duke perdorur ca VBA .
nje metode e thjeshte:Postuar mė parė nga toni karlosi
skedari c:\windows\system32\hidden-file.txt kontrollohet per last-created date. nqs date e sotme eshte me e madhe se data e skedarit atehere "trial" mbaron!
ka plot gjera qe mund te shtosh si psh reputacionin tim si webmaster. heh!
file.zip shtuar me poshte ka komplet database. mos harro macron autorun tek macrot.
Kodi:module1 ============================================= Option Compare Database 'startup() ne VBA??????? Public Function StartUp() ExpiryDate 'no return value but must be a function for macro to be able to call it 'call this from autoexec macro On Error Resume Next If Now >= DBEngine(0)(0).Properties("ExpiryDate") Then MsgBox "This application has expired. @Please contact ?????????? @to obtain a new version." Application.Quit Else If Err = 3270 Then Exit Function 'property does not exist End If End Function Public Function CreateMyFile() If fIsFileDIR("c:\windows\system32\hidden-file.txt") = -1 Then 'Do Nothing Exit Function Else On Error Resume Next Set fs = CreateObject("Scripting.FileSystemObject") Set a = fs.CreateTextFile("c:\windows\system32\hidden-file.txt", False) a.Close End If End Function 'funksioni Public Function fIsFileDIR(stPath As String, _ Optional lngType As Long) _ As Integer On Error Resume Next 'Check to see if file exists fIsFileDIR = Len(Dir(stPath, lngType)) > 0 End Function Public Function ExpiryDate() 'creates or resets a property called ExpiryDate On Error Resume Next If fIsFileDIR("c:\windows\system32\hidden-file.txt") = -1 Then 'Do Nothing Exit Function Else CreateMyFile 'create text file End If Dim db As Database Dim p As Property Dim pval As Date Set db = DBEngine(0)(0) 'set the required expiry date (defaults to 30 days from now) pval = CDate(Now() + 30) With db 'check to see if already defined Set p = .Properties("ExpiryDate") If Err = 3270 Then 'property does not exist Set p = .CreateProperty() p.Name = "ExpiryDate" p.Type = dbDate p.Value = pval .Properties.Append p GoTo exit_setexpirydate End If End With exit_setexpirydate: Set p = Nothing Set db = Nothing End Function
Kodi:module2 ================================= Option Compare Database Sub ExpiryDate() 'creates or resets a property called ExpiryDate 'to use it type ExpiryDate in the debug window 'to remove the property type the following in the debug window ' DBEngine(0)(0).Properties.Delete "ExpiryDate" On Error Resume Next Dim db As Database Dim p As Property Dim pval As Date Set db = DBEngine(0)(0) 'get the required expiry date (defaults to 30 days from now) 'NOTE: if an invalid date is entered it will generate 00:00:00 pval = CDate(InputBox("Enter the Expiry Date", "Set Expiry Date", Now() + 30)) With db 'check to see if already defined Set p = .Properties("ExpiryDate") If Err = 3270 Then 'property does not exist Set p = .CreateProperty() p.Name = "ExpiryDate" p.Type = dbDate p.Value = pval .Properties.Append p Debug.Print "Expiry Date is : "; p.Value GoTo exit_setexpirydate Else Debug.Print "Expiry Date was : "; p.Value p = pval Debug.Print "Expiry Date is now : "; p.Value End If End With exit_setexpirydate: Set p = Nothing Set db = Nothing End Sub
Ndryshuar pėr herė tė fundit nga Alket123 : 28-10-2005 mė 00:27
besoj se me mire do te ishte qe aplikacioni te lejohej vetem 100 here te hapej dhe pastaj te mbyllej. Kjo do te ishte dhe me e sigurte pasi Data manipulohet kollaj ne kompjuter :P.
Mbase edhe qe ky numer te mos inkrementohet nese aplikacioni hapet dhe mbyllet midis 2-3 oreve duke lene nje thread te jashtme te mbaje timerin , pasi sic thame dates ne pc nuk mund ti zeme bese.
Aplikimi me lart shembull eshte vetem per 30 dite dhe VBA code nuk eshte as i mbrojtur as fshehur nga perdoruesi.Postuar mė parė nga qoska
Po ka mijera menyra per te shmangur kopjimin. Nese je serioz ne te kete biznes keto jane registry, skedare, dongles, lmgrd licenses me indipedent clocks etj.
Kodi VBA i databazave tė Access mund tė mbrohet duke e kthyer databazėn nė formatin MDE. Nė kėtė format i gjithė kodi pėrpilohet dhe databaza ngjeshet. Kjo nuk lejon leximin apo modifikimin e kodit, si dhe nuk lejon ndryshimin e formularėve dhe raporteve. E vetmja gjė qė mund tė ndryshosh ėshtė informacioni i tabelave. Njė avantazh tjetėr i MDE ėshtė se databaza zė mė pak vend nė hard disk dhe kodi VBA ekzekutohet mė shpejt.
Me pak fjalė MDE pėrdoret vetėm pėr tė shpėrndarė databazėn pasi e ke pėrfunduar atė. Kjo ėshtė kopja qė i jep klientit, ndėrsa programuesi qė do tė bėjė ndryshime duhet tė ruajė gjithnjė databazėn origjinale nė formatin MDB.
Pėr tė kthyer databazėn nė formatin MDE, tek menuja kryesore zgjidh Tools > Database Utilities > Make MDE File. Edhe njėherė e pėrsėri qė konvertimi ėshtė i njėanshėm (MDB->MDE) dhe jo anasjelltas, prandaj duhet tė ruani njė kopje tė databazės origjinale nė formatin MDB.
Edi
HELLO,
Ju pershedes te gjitheve per ndihmen ,kurse sa i perket se ky ka afat 30 ditesh atehere mund ta ndroj une kete date .
Sa i perket asaj se nuk mund ta mbroj kodin ,une them se ka mundesi sepse kodi ne VBA mbrohet me Password dhe ky kod nuk mund te ndryshohe.
Sidoqofte ju falenderj te gjitheve e posqerisht qoske-n per ndihmen e tij.
gjithe te mirat
nje ide tjeter per mbrojtjenmund te jete lejimi i krijimit te 10-20 fileds ne databaze edhe jo me shume. po perseri mbeshtes mendimin e edspace pasi cado lloj mbrojtje te perdoresh codi i moduleve mund te lexohet edhe une personalisht preferoj kontrollet me ane te registry edhe kontrollit te tyre ajo cka qoska sygjeroi eshte nje opsjon qe mund te ndiqet me registry keys megjithat une mendoj se access eshte pak aout of date ... ky eshte mendimi im personal
ardi
Forgiving Islamic Terrorists is Gods Duty, Our Duty Is To arrange the Meeting
N. H. Schwarzkopf
Besoj se ne shqiperi nuk eshte akoma problemi i licensave dhe prandaj te gjithe i drejtohen aplikacioneve si access etj te microsoft.
Por kur keto te vihen ne pune mbase do te shohim aplikacione tamam.
Gjithsesi per momentin eshte me e shpejta dhe e thjeshta.
Krijoni Kontakt