Questions tagged [bgi]

Borland graphics interface (graphics.h) is a legacy library for 2D graphics similar to nowadays GDI.

Borland graphics interface (graphics.h)

  • is an old legacy library for 2D graphics similar to nowadays
  • was widely used with Borland IDE's like Turbo Pascal or Turbo C++
  • is still used in some schools
392 questions
-1
votes
1 answer

how to move a object inside a certain boundry in c++

i want to make a ping pong game, i am stuck at the ball movement i don't want it to get out of the boundaries which in case is 640 by 480..... i don't want it to get out of this boundary but instead move again just like in the case of…
-1
votes
2 answers

How to set custom Border width of objects in Turbo C++ graphics?

I need help as i am drawing some shapes using graphics.h in TURBO C++ compiler I need to increase the border width of shapes as it is hardly visible please tell me the function(if exists) OR another way around.
-1
votes
1 answer

graphics.h - installed it, why still error?

So i followed instructions from an another question answer in this page about how to install graphics.h And it resulted correctly. But when i included it, it showed me this error message: C:\Program…
Orfeo Terkuci
  • 295
  • 2
  • 18
-1
votes
1 answer

Codeblocks runtime error with graphics.h based program

I tried running the program from this link in Codeblocks- https://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=7939&lngWId=3 The program runs but prematurely stops with an error- 'drawing operation was attempted when there was no…
-1
votes
2 answers

Screenshot in Graphics Output [Turbo C++ 3.0 in Windows XP]

I am unable to take screenshot in a graphics output that is generated in a Turbo C++ in Windows XP. How to do that? I tried PrintScreen and pasting it in MSPaint, but didn't help.
Sibidharan
  • 2,717
  • 2
  • 26
  • 54
-1
votes
2 answers

How to start BGI window of c++ program in maximized mode?

I am making a c++ project for my High School. I am using Dev c++ with graphics. What I want is when BGI window opens it should start in maximized mode instead of normal window. following is my code but it doesn't works…
sam
  • 236
  • 3
  • 6
  • 17
-1
votes
1 answer

Declaration error in my code

I am getting an error on Line 48 in the following code: #include #include #include #include #include void swap(int a,int b);void bar1();void bar2(); void bar3(); void bar4(); check0();…
CuriousDev
  • 1,255
  • 1
  • 21
  • 44
-1
votes
2 answers

graphics.h in CodeLite?

It was a header that was available in old Borland compilers. Used strictly for graphics in MS-Dos apps. You are at least 7 operating systems, 16 bits, 20 years and untold compiler versions removed from using it. Yes, I know that…
An SO User
  • 24,612
  • 35
  • 133
  • 221
-1
votes
1 answer

BGI in updated wxDevCpp does not work

I need to use BGI graphics in my program and it worked just fine in the wxDevCpp 7.3. But now I installed an updated version of this IDE 7.4, did everything by instruction http://www.cs.colorado.edu/~main/bgi/dev-c++/, just like before, but now when…
user3496846
  • 1,627
  • 3
  • 16
  • 28
-1
votes
1 answer

Error converting Turbo Pascal to C++ code

here is a working Turbo Pascal example uses graph, crt; const xmax=600; ymax=400; type vreal=array[1..xmax] of real; var y:vreal; r,h,vmax,vmin,a,b:real; i,linie0:integer; grDriver: Integer; grMode: Integer; s:string; …
user3254845
  • 5
  • 1
  • 5
-1
votes
3 answers

Reading first line of the file is not working

I am reading from a file (containing numbers seperated by newline) and calculating the amount. The problem is while reading the file and storing the amount in array it is skipping the first letter of the first amount, eg:- if the first line has 324,…
-1
votes
2 answers

Game thinks mouse button is being clicked continously?

void runGame(){ readimagefile("PIX\\Landscape.jpg", 0, 0, 800, 800); while(1 == 1){ moveCharacter(); //moveMonster(); } } void moveCharacter(){ int move = 0; int size = imagesize(0, 0, 800, 800); void…
Tyler Dahle
  • 77
  • 1
  • 8
-1
votes
1 answer

BGI graphics for Linux?

I need to know whether there is any BGI library for graphics in Linux. Please do not suggest any library other than BGI because I want to use it using C and I am comfortable with it.
wantobegeek
  • 1,665
  • 3
  • 19
  • 19
-2
votes
1 answer

const char * is incompatible with parameter of type char *, initgraph()

I have been going through this: https://www.geeksforgeeks.org/draw-circle-c-graphics/ and for some reason it seems to not be working, I'm using vs 2019, I have the dependency's, no errors there, it seems its just the two quotes in initgraph(&gd,…
CodingWiz
  • 31
  • 7
-2
votes
1 answer

The graphics.h library when used , shows objects inverted and also inverts the coordinates too

I tried to write a code to draw a triangle with its base facing downwards, using the following program: #include #include using namespace std; int main() { initwindow(400,400,"Triangle"); line(100,100,200,300); …
Ayush
  • 23
  • 7