program won't run standalone

This is a discussion on program won't run standalone within the C++ Programming forums, part of the General Programming Boards category; I'm a tech - not a programmer. But, I must revive a crashed pc with a particular tried and proven ...

  1. #1
    Registered User
    Join Date
    Jul 2002
    Posts
    1

    program won't run standalone

    I'm a tech - not a programmer. But, I must revive a crashed pc with a particular tried and proven program from another computer.

    The program won't run from a floppy, in another computer, or even in another directory. The program executes flawlessly within the program directory it resides in (Borland, Turbo Basic). There are different versions of the original code. I have the same problem with each. The program is in executable code. What is missing when it is moved? The program is used to print incrementing numbers onto labels. The program has been used in different pcs running DOS or Windows.

    I'm guessing it has to do with environment, configuration, file association, - something other than programming errors.

  2. #2
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    >What is missing when it is moved?
    Could be a number of things.

    >The program is used to print incrementing numbers onto labels.
    Sounds pretty simple, is the source small? Is it C/C++? If so, maybe you could post it here.

    What doesn't work, what does it do or not do that is different to before? What error messages do you get?
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

  3. #3
    Carnivore ('-'v) Hunter2's Avatar
    Join Date
    May 2002
    Posts
    2,879
    The program executes flawlessly within the program directory it resides in (Borland, Turbo Basic).
    a) it might need some specific file that can be accessed from that folder by a certain route


    e.g. working folder is c:\borland\turbobasic
    file is c:\borland\turbobasic\stuff\morestuff\stuff2

    so to reach the file, it goes
    stuff\morestuff\stuff2\file.ext


    e.g.#2 same working folder
    file is c:\borland\otherstuff

    so to reach the file, it goes
    ..\otherstuff\file.ext


    b) This is a "c" programming board... it sounds like your program is written in basic, which is not c or c++... try a board for basic instead, it'll probably be easier to get help.
    Just Google It. √

    (\ /)
    ( . .)
    c(")(") This is bunny. Copy and paste bunny into your signature to help him gain world domination.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Program Plan
    By Programmer_P in forum C++ Programming
    Replies: 0
    Last Post: 05-11-2009, 02:42 AM
  2. Client-server system with input from separate program
    By robot-ic in forum Networking/Device Communication
    Replies: 3
    Last Post: 01-16-2009, 03:30 PM
  3. Re-doing a C program to run in Win2000 or XP
    By fifi in forum C Programming
    Replies: 5
    Last Post: 08-17-2007, 06:32 PM
  4. Using variables in system()
    By Afro in forum C Programming
    Replies: 8
    Last Post: 07-03-2007, 01:27 PM
  5. plz help me run this program!!!
    By galmca in forum C Programming
    Replies: 8
    Last Post: 02-01-2005, 01:00 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21