VB app runs only on the PC it is compiled on.


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: VB app runs only on the PC it is compiled on.

  1. #1
    William Henderson Guest

    VB app runs only on the PC it is compiled on.


    I am a consultant who inherited a VB6 program utilizing SQL 7.0 for the backend.
    The pogram will compile and run. But the moment you try to install it on
    another machine, it will not run on that machine. All we here are two quick
    beeps. The program does not even get to the first line of code, it dies while
    windows is trying to load it.
    We moved the cource code to another PC, compiled it and it ran fine. We moved
    the executable back to my PC and it will not run. All we hear are the two
    quick beeps.
    The program is using the data environment variable (which I believe to be
    the culprit).
    Dev environment is NT4 w/ SP5
    Target environment is NT4 w SP5, Win98

    Have you ever encountered this before? Any suggestions?
    Share on Google+

  2. #2
    Dan Appleman Guest

    Re: VB app runs only on the PC it is compiled on.

    Sounds like a typical DLL **** dependency problem. Missing DLL, misregistered
    component, obsolete version - anything that might raise a runtime error that would
    cause the program to fail.

    You might check out our VersionStamper program (www.desaware.com) - it's good for
    resolving and preventing that type of problem.

    It could also be any number of other configuration problems, but DLL **** would be
    my first guess.

    Best of luck - these things can be tricky.

    Dan


    William Henderson wrote:

    > I am a consultant who inherited a VB6 program utilizing SQL 7.0 for the backend.
    > The pogram will compile and run. But the moment you try to install it on
    > another machine, it will not run on that machine. All we here are two quick
    > beeps. The program does not even get to the first line of code, it dies while
    > windows is trying to load it.
    > We moved the cource code to another PC, compiled it and it ran fine. We moved
    > the executable back to my PC and it will not run. All we hear are the two
    > quick beeps.
    > The program is using the data environment variable (which I believe to be
    > the culprit).
    > Dev environment is NT4 w/ SP5
    > Target environment is NT4 w SP5, Win98
    >
    > Have you ever encountered this before? Any suggestions?


    Share on Google+

Similar Threads

  1. Replies: 0
    Last Post: 02-20-2003, 11:32 AM
  2. Replies: 0
    Last Post: 06-30-2002, 05:23 AM
  3. Activating 1 of multiple VB app Forms
    By Sam in forum VB Classic
    Replies: 0
    Last Post: 08-29-2001, 02:23 PM
  4. VB?? Visually BAD??
    By pnichols in forum Java
    Replies: 5
    Last Post: 12-27-2000, 12:25 PM
  5. vb app as nt service with dcom
    By Mike in forum VB Classic
    Replies: 6
    Last Post: 04-26-2000, 06:10 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center