Results 1 to 6 of 6

Thread: VB5 --> VB6 Help!!

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jan 2000
    Location
    UK
    Posts
    66
    I've just installed VB6 SP3 - this piece of code worked fine in VB5 but now I get:

    Run-time error 458
    Variable uses an Automation type not supported in Visual Basic

    on the first Get command.

    Any ideas?

    Simon


    filePath = "motd" 'use this to test at home
    If Len(Dir(filePath)) <> 0 Then
    Open filePath For Binary As #1
    Get #1, , msgschoolname
    Get #1, , msgschooldesc
    Get #1, , countdowntext
    Close #1

  2. #2
    New Member
    Join Date
    Aug 2000
    Location
    Tampa, FL
    Posts
    7
    Are you running the program on a pc that has VB5 on it?

  3. #3
    _______ HeSaidJoe's Avatar
    Join Date
    Jun 1999
    Location
    Canada
    Posts
    3,946

    <?>

    I dont get an error....VB6 SP3
    "A myth is not the succession of individual images,
    but an integerated meaningful entity,
    reflecting a distinct aspect of the real world."

    ___ Adolf Jensen

  4. #4
    New Member
    Join Date
    Aug 2000
    Location
    Tampa, FL
    Posts
    7
    If you have anything early bound in your program and you are running the program that you compiled in VB6 on a VB5 pc you will have version problems. It has happened to me.

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Jan 2000
    Location
    UK
    Posts
    66
    Nope - it's installed on a brand new machine.

  6. #6
    _______ HeSaidJoe's Avatar
    Join Date
    Jun 1999
    Location
    Canada
    Posts
    3,946

    <?>

    If it's nothing major you can zip and email it to me and I'll run it on this machine and see what happens.
    The VB5 version that is....I'll run it on VB6
    Wayne
    "A myth is not the succession of individual images,
    but an integerated meaningful entity,
    reflecting a distinct aspect of the real world."

    ___ Adolf Jensen

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