VB6 unable to run script error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • muddasirmunir
    Contributor
    • Jan 2007
    • 284

    VB6 unable to run script error

    I had a vb6 application, I had once made the application using win7, but now when I try to run the application in win xp (even if i try to run exe or use the run function on vb6 programe to execute code) I am getting error that says something like that

    'Unable to run script'

    What the problem? why that error accrued?
  • Guido Geurs
    Recognized Expert Contributor
    • Oct 2009
    • 767

    #2
    'Unable to run script' don't say much!

    Did you add references in Win7 who are not present in XP?
    Do you know the use of "break point" and "watch".
    If so where gives the Run the error?

    Is it possible to attach the code in Bytes so I can test it?

    Comment

    • muddasirmunir
      Contributor
      • Jan 2007
      • 284

      #3
      Well, I had first made the application in win xp, then i had buy a laptop with preinstalled win7 so i complete the application in win7.

      Now, when I had just run the application in win xp of my client, I just copied the whole programe with relevent software required but its give me error something like ' Unable to run script'

      There is no where which the program get me point so I can debug the code and I donot think there is something wrong in my code , as its working perfectly fine in my laptop with win7 and I had also try it on another computer with win xp its working fine.

      Is this possible that xp has different version and it might not contain some file that I had to install to run my application

      Comment

      • Guido Geurs
        Recognized Expert Contributor
        • Oct 2009
        • 767

        #4
        Is on both the PC's the same XP Service pack installed?
        Do you use references from other software like Office,... and if so, have both PC the same software and service pack's of that software?
        Do you use References or is there in the code a "Declare function..." which point to a software not installed on the bad PC?

        Comment

        • muddasirmunir
          Contributor
          • Jan 2007
          • 284

          #5
          I donot know what service pack are installed in my computer and what on my client one? How can I check? I am also thinking that there might be some service pack missing in my client computer? is there any service pack you can name me that help to run vb6 in xp?

          Also, As I had made programe for quiet a long time so I did not excatly remember the reference I used in my programe? but I remeber I had used excel export function and some other references but did not they auto install once I had install complete vb application? and if there is a reference issue did not vb6 give me 'Reference not found' error while running/debuggin my program?

          My main thoughts was that as the program was working fine on many many other pcs with xp and win 7 then there might be some specific service pack required to run vb script on my client xp , is this possible if so can you name me some pack which might be needed to run vb6 software properly on my client?

          Please also tell me What programe (even paid one) can i use to make my application to deply on my client machine so all the reference and dll will be added with because when I use vb6 wizard to deploy on client machine I always get error that with a specific DLL is out of date and my computer need to restart to update but even after restart the error remain the same.

          Comment

          • Guido Geurs
            Recognized Expert Contributor
            • Oct 2009
            • 767

            #6
            Sorry but it's difficult to determine from here what is wrong with that PC!
            The best you can do is to install for each software on the bad PC the latest SP's: for XP = SP3, for Office ...
            Also you mentioned :"...but I remember I had used excel export function and some other references ..."
            Because last time there was a similar problem with Andylucky (see call=

            Comment

            • muddasirmunir
              Contributor
              • Jan 2007
              • 284

              #7
              Thanks Guido for you kind help. I had also find this http://tips-testing.blogspot.com/200...indows-xp.html

              Might be this causing the problem. I will try it on my client computer and if it work I will reply on board for other people to take help.

              Comment

              Working...