Results 1 to 6 of 6

Thread: strange application behaviour

  1. #1

    Thread Starter
    New Member
    Join Date
    Dec 2006
    Posts
    3

    strange application behaviour

    Hello, experienced VB programmers
    I have one huge problem with a small application i have developed recently.
    It's in VB 6 and I've run it on several machines, but it won't work on the PC it's supposed to be run on.
    The thing is I get run-time error 13 : type mismatch when I call any VBA method.
    I wrote a small program to test some VBA methods (my program crashes on Weekday) and it works fine.
    My program references ADODB and Surfer 8 type library and also VBScript regular expressions.
    On the PC I'm trying to deploy on there is also vb 5 runtime installed, but
    there are some VB 6 programs running.
    Any ideas why this might be happening?

    Thanks in advance

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

    Re: strange application behaviour

    Welcome to VBForums

    Have you actually installed the package, or just copied the program/code file(s)?

    Does this problem happen in VB itself, or with the compiled file? (either way, the things you reference need to be installed)

    If it is in VB, you can check your references list (via "Project" -> "References"), and see if any of the ticked items are marked as "MISSING:".

  3. #3
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: strange application behaviour

    What are you coding in VBA, VB5 or VB6?

  4. #4

    Thread Starter
    New Member
    Join Date
    Dec 2006
    Posts
    3

    Re: strange application behaviour

    Thanks for the welcoming =)
    The problem occurs with the compiled file.
    I have just copied my executable, but the computer has all necessary libraries already installed and updated with randem's Automatic OS Updater.
    It's coded in VB 6.

  5. #5
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: strange application behaviour

    You really should not do it that way. Since I image it works on your development computer the problem seems to be with the dependencies. Create a proper installation and retry.

  6. #6

    Thread Starter
    New Member
    Join Date
    Dec 2006
    Posts
    3

    Resolved Re: strange application behaviour

    Problem solved!
    It turned out that the local settings for the date format on the PC I had problems with are different and apparently the CDate() function depends on these settings, so it yielded an error trying to convert the string passed ...

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