C++ graphics in windows 7

radhika15397

New member
Local time
3:50 AM
Messages
1
Hi ,
I have turbo C++ which starts in dos box0.74.
All the other program are running but when i write a proram for drawing a circle, it won't work.
Please help!!!!!
thanking you
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Dell
OS
Windows 7 Home Premimum 32bit
Could please clarify on what the problem is? Does your complier work?

Are you sure you've written the correct code? Check for any errors indicated by your complier in your source code.

If your having problems with creating a circle, then this may be of help to you - Creating a circle - C++ Forum
 

My Computer

Computer type
Laptop
Hi ,
I have turbo C++ which starts in dos box0.74.
All the other program are running but when i write a proram for drawing a circle, it won't work.
Please help!!!!!
thanking you

Hi radhika15397, Welcome..I was also facing same issue. I don't do C++ as profession, I just like to make small programs. I was trying to make Loading bar in C++ and was not able to make one. I read many articles and it confirms that Turbo C++ compiler is not compatible with our Win 7. You might be getting error "BGI graphics not supported in windows" or something like that...This means that the graphic file is not supported in win 7.

You can try this and see if it helps. Try to save file like this.

File ==> New ==> Project
Platform: DOS (Standard), Libraries: BGI
If it don't work so type: initgraph(&dr,&m,"C:\\BC5\\BGI");
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom Bulid/Self made
OS
Windows 11 x64
CPU
i5 2500K @ 3.3 GHz
Motherboard
ASUS P8 Z77 V pro
Memory
16 GB DDR 3 @ 1600Mhz
Graphics Card(s)
MSI 1050TI 4GB OC version
Sound Card
On Board (Realtek HD audio)
Monitor(s) Displays
Samsung 22" LCD
Screen Resolution
1920*1080
Hard Drives
Seagate 1 TB, WD 1TB, Seagate 2 TB ( I use a lot of space)
PSU
coolermaster 750 W
Case
Coolermaster HAF912
Cooling
Coolermaster hyper 212 EVO
Keyboard
Samsung
Mouse
Dell Wireless
Internet Speed
Wireless 50 Mbps
Antivirus
AVG 2016 Internet Security
Browser
Google Chrome
Another thing worth a try is running freedos in a virtual machine (like VirtualBox).
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
custom built
OS
Win 7 Pro 64-bit 7601
CPU
AMD Phenom 9650 QuadCore, revision DR-B3
Motherboard
ASUS M4A78
Memory
5 GB yes I run 2x 2GB and 1x 1GB, different brand, spank me.
Graphics Card(s)
NVIDIA GeForce 9800 GT 512 Mb, unknown manufacturer.
Sound Card
Crappy Realtek Integrated Audio
Monitor(s) Displays
Fujitsu Siemens P19-3P
Screen Resolution
1280 x 1024 x 32 bits @ 60 Hz Oh yeah, 4:3 rocks!
Hard Drives
(1) MAXTOR S TM3320613AS SATA Disk Device (2) STM35004 18AS SATA Disk Device (3) TOSHIBA USB 2.5"-HDD
PSU
whatever, around 450w
Case
Scavenged from old company PC, 10+ years old
Cooling
CPU fan, GPU fan, case fan, nothing fancy
Keyboard
Microsoft, PS/2, white.
Mouse
Optical, logitec.
Internet Speed
effective max speeds: 70-ish kB/s down 30-ish kB/s up
Antivirus
Avira, free edition.
Browser
Firefox with FXChrome to make it look like Google Chrome :P
Other Info
Was discarded by previous owner due to "horrible performance".
Was running Win Xp from a IDE drive. Yeah. Was a pain.
SATA II drive and Win7 and it zips away! Yay!
Turbo C++ was released in 1990! What C++ specification are you writing in? If you writing with modern Standard C++ specification, then your complier may not understand the code your writing, even though it is technically correct.
 

My Computer

Computer type
Laptop
Look for other C++ compilers, this is a recommended one:

Download | Microsoft Visual Studio 2012

There are 2012/13 versions, but didn't see any there as free. [says 2012 above but it's showing you the 2010 downloads]

Plus plenty of books available on that one to learn.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self Built Custom
OS
Windows 7 Ultimate Retail Box (64-bit installed) + Service Pack 1
CPU
AMD FX-8350 CPU v1.15 (or 1.0F) BIOS was required!
Motherboard
MSI 890FXA-GD70
Memory
8G CAS-7 G-Skill DDR3 @1333 (2 fours) [mobo nonOC max rec'd]
Graphics Card(s)
Radeon HD 7950 [3 gigs of GDDR5] MSI Twin Frozr model
Sound Card
Realtek High Definition Audio (onboard mobo, ALC-889 chip)
Monitor(s) Displays
2 WS LED Monitors: One LG One Viewsonic
Screen Resolution
1920 by 1080
Hard Drives
SSD for OS: Samsung 840 Pro
SSD for VM and utilities: Adata SX900
7200 RPM SATA HDs for the rest: Hitachi and Seagate
PSU
Corsair TX850 - 850W max, in service since August 2010.
Case
Thermaltake Armor A90
Cooling
Thermaltake Spin Q CPU Cooler, in service since August 2010
Keyboard
Logitech G11
Mouse
Logitech M310 Wireless
Internet Speed
100 Megabit broadband supposedly upgraded from 50 (Cable)
Antivirus
Bitdefender Internet Security 2014 suite
Browser
Pale Moon 64-bit main, also IceDragon, Opera, and Maxthon.
Other Info
CompTIA A+ certified (220-800 series) in July 2013.
Back
Top