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..

Recommended Answers

All 2 Replies

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

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."

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.