Results 1 to 7 of 7

Thread: VB6 and windows 7

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2013
    Posts
    2

    VB6 and windows 7

    Since i have a new PC with windows 7 instead of windows xp
    the functions time and mid does'nt work anymore, may be that one or more libraries are missing.
    Can anyone help me with this problem.

    Thanks
    Henk

  2. #2
    Default Member Bonnie West's Avatar
    Join Date
    Jun 2012
    Location
    InIDE
    Posts
    4,060

    Re: VB6 and windows 7

    Can you show the code involving the functions that doesn't seem to work?
    On Local Error Resume Next: If Not Empty Is Nothing Then Do While Null: ReDim i(True To False) As Currency: Loop: Else Debug.Assert CCur(CLng(CInt(CBool(False Imp True Xor False Eqv True)))): Stop: On Local Error GoTo 0
    Declare Sub CrashVB Lib "msvbvm60" (Optional DontPassMe As Any)

  3. #3

    Thread Starter
    New Member
    Join Date
    May 2013
    Posts
    2

    Re: VB6 and windows 7

    hierbij een stukje code:
    Down, Seconden is een public variabele

    Bij debugging geeft het programma een fout op Time en Mid, vroeger werkte dit feilloos.
    vervang ik Time door Now, dan ben ik 1 foutmelding kwijt

    Private Sub Timer2_Timer()
    Dim L1 As String
    Dim L2 As String
    Dim Seconden As Integer
    If Down = 1 Then
    Seconden = Val(Text5.Text & Text6.Text)
    If Label1.Caption <> CStr(Time) Then
    'seconden
    Seconden = Seconden - 1
    If Seconden >= 0 Then
    If Seconden > 9 Then
    L1 = Mid(Seconden, 1, 1)
    L2 = Mid(Seconden, 2, 1)
    Text5.Text = L1
    Text6.Text = L2
    Else
    L1 = Mid(Seconden, 1, 1)
    Text5.Text = 0
    Text6.Text = L1
    End If
    Else

  4. #4
    Fanatic Member
    Join Date
    Jan 2013
    Posts
    813

    Re: VB6 and windows 7

    Check the Project References and Components lists for any that are marked as "Missing".
    If you have any of these, then you'll get errors from all sorts of "built-in" stuff - it's usually Mid$ that "breaks" on my machine.

    Regards, Phill W.

  5. #5
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: VB6 and windows 7

    Phill W is absolutely correct that you should be dealing with that (before thinking about other options/possibilities)... there is a guide to help you with this error in the article What does this error mean, and how do I fix it? from our Classic VB FAQs (in the FAQ forum)

  6. #6
    Banned
    Join Date
    Nov 2012
    Posts
    1,171

    Re: VB6 and windows 7

    people use windows 7-8 for only small changes such as drag and minimize all app , why not just install the theme over windows xp

  7. #7
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: VB6 and windows 7

    There are a lots of extra features which make it worthwhile for many people, not to mention the fact that support (from Microsoft, and hardware/software manufacturers) is an issue for many people.

    Besides, your personal choice about which version of Windows to use is irrelevant to this thread (despite a mention of Windows 7, the issue is almost certainly nothing to do with it, and even if it is then changing to a different Window version may not be an option), so your post does not really belong here.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width