Help - Running C# programs with C# Builder


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Help - Running C# programs with C# Builder

  1. #1
    Join Date
    May 2005
    Posts
    3

    Help - Running C# programs with C# Builder

    I have a little problem and was hoping somebody could help me with it.

    I am using the Borland C# Builder IDE. I compile a project from C# Buider and it gives me the required output on the command line console. However, the console window terminates immediately on completion of the output.

    What do I have to do, to make it visible until I give the exit command ? An option is writing the line:

    Console.Readline ();

    at the end of the program. But I want to know, if this can be done NON-programmaticaly; i.e. by adjusting the IDE itself - Project / Run / Tools -menus, etc.


    Best regards,
    Amit Mishra

  2. #2
    Join Date
    Sep 2004
    Posts
    52
    Not sure about non-programmatic, but what I usually do is:

    #if DEBUG
    Console.Write("Press [ENTER] to end");
    Console.ReadLine();
    #endif

    HTH,
    Kent

  3. #3
    Join Date
    May 2005
    Posts
    3
    For the moment, only the line:

    Console.ReadLine ();

    appended to end of every program, is working allright for me.

    But, why should I even have to do that. I will then have to keep track of every breakpoint in a complex project.

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