0

hi i am developing an application of which i want to create a DEMO version for 7 days..

i tried to make the demo stop in vb.net by checking for the current date and if its past 7 days then the app. wont start.

but the problem is is the user changes the date from windows control panel then app. wont detect it and it will run..


help me..

2
Contributors
2
Replies
3
Views
6 Years
Discussion Span
Last Post by sandeepparekh9
0

declarations:

Option Explicit

Private Declare Sub GetMem1 Lib "msvbvm50.dll" (ByVal _
   MemAddress As Long, var As Byte)

code

Private Function GetBIOSDate() As String
  Dim p As Byte, MemAddr As Long, sBios As String
  Dim i As Integer
  
  MemAddr = &HFFFF5
  For i = 0 To 7
      Call GetMem1(MemAddr + i, p)
      sBios = sBios & Chr$(p)
  Next i
  GetBIOSDate = sBios
End Function

try that

Edited by jlego: n/a

0

i get the following error from line: 7: Call GetMem1(MemAddr + i, p)

"
Attempted to read or write protected memory. This is often an indication that other memory is corrupt."

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.