Question:

Screen Flicks after running the program I created from Borland C++ ?

by Guest45407  |  earlier

0 LIKES UnLike

Whenever I complie a program on Borland C++/Bloodshed the screen flicks after running the program..I mean the Command prompt window jus flicks and goes....pls help

 Tags:

   Report

2 ANSWERS


  1. Since you mentioned command prompt, I am assuming you are creating a console program?  If you are observing flickering and you are creating a Win32 application, you may need to employ a double buffering technique as you repaint the client area.

    If you don't want the console program to close right away, add a statement at the end of your program that expects input to prevent it from closing...

    ex:

    #include <iostream>

    using namespace std;

    int main() {

      cout << "Hello world!" << end ;

      cout << "Press 1 (and enter) to close" << endl ;

      int i ;      //  wait for input before closing

      cin >> i ;

      return( 0 ) ;

    }


  2. One of the function call forced some of the video memory flag to change  

Question Stats

Latest activity: earlier.
This question has 2 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.