Thread: Borland C++ 5.02 with Windows Millenium Edition

  1. #1
    Registered User
    Join Date
    Mar 2002
    Posts
    10

    Question Borland C++ 5.02 with Windows Millenium Edition

    I'm having trouble using Borland C++ 5.02 that I got from school to work on my home computer with Windows ME. Does anyone know if there is patch or free upgrade? Thanks.

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    Clarifying the trouble would be a start

    As would removing ME

    How about some other compilers
    http://www.compilers.net/
    http://www.thefreecountry.com/developercity/index.html

  3. #3
    Registered User
    Join Date
    Mar 2002
    Posts
    10
    When I try to run a program that ran in class (on Windows NT, I believe) on my home computer I get the error "File has caused an error in xxxxxxx.EXE. File will now close. If you continue to experience problems, try restarting your computer."

    Thanks for the website references.

  4. #4
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    > When I try to run a program that ran in class
    Any chance of pasting this program?

    Just because your program works in one compiler/OS doesn't mean that its bug free and will work in all other environments.

    Also, try a really simple program like
    Code:
    int main ( ) {
      printf( "hello world\n" );
      return 0;
    }
    And check this works everywhere you work, before dismissing your environment as broken

  5. #5
    Registered User
    Join Date
    Mar 2002
    Posts
    10
    Your program worked on my ME system. Other programs I have written for class have worked too. Just some of them don't. Maybe it's a function I'm using. I've attached the program I trying to run because it's a little long. Thanks.

  6. #6
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    Well apart from void main should be int main, and that main should have a return 0; at the end, seems OK to me

    You could try say commenting out the call to bubblesort, like so
    // bubbleSort(Student, Test_Score);
    It will print in the wrong order, but the calculations should still be good. Does it fail then?

    Try commenting out other bits as well, see if that tells you anything.

  7. #7
    Registered User
    Join Date
    Mar 2002
    Posts
    10
    Actually just as I received your reply I was finally able to get it to run by changing the Target Type from EasyWin [.exe] to Application [.exe] and it ran without error, but did not stop so I could see the results. So I stuck a "scanf" at the end and it seems to work now. Thanks for all of your input.

  8. #8
    Originally posted by NCCMelissa
    Actually just as I received your reply I was finally able to get it to run by changing the Target Type from EasyWin [.exe] to Application [.exe] and it ran without error, but did not stop so I could see the results. So I stuck a "scanf" at the end and it seems to work now. Thanks for all of your input.
    You can always use a system pause as opposed to the scanf:

    Code:
    system("PAUSE");
    DrakkenKorin

    Get off my Intarweb!!!!

  9. #9
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,897
    >You can always use a system pause as opposed to the scanf:
    Or not, system should be avoided when possible. While we're at it, scanf should be too. I prefer getchar() at the end of my programs if they need to be stopped before closing since it's both standard and not terribly inefficient.

    -Prelude
    My best code is written with the delete key.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Information: Exiting Windows
    By Okiesmokie in forum C++ Programming
    Replies: 2
    Last Post: 05-12-2002, 09:42 AM
  2. shutting down windows
    By DavidP in forum A Brief History of Cprogramming.com
    Replies: 3
    Last Post: 01-02-2002, 12:28 PM
  3. I just got Window's XP (Home Edition)
    By Generator in forum A Brief History of Cprogramming.com
    Replies: 28
    Last Post: 11-03-2001, 09:40 PM
  4. Charles Petzold's Programming Windows
    By Garfield in forum C Programming
    Replies: 6
    Last Post: 10-08-2001, 07:28 AM
  5. Charles Petzold's Programming Windows
    By Garfield in forum Windows Programming
    Replies: 1
    Last Post: 10-07-2001, 01:23 PM