Avatar of ianatics
ianatics
 asked on

how to import Image file in turbo c++ ?

Good Day! :D GOD IS GOOD :)
Hi Everyone. I have a Question. How to import any img file in turbo c++. It will serve as an image background.
or what syntax will I need to import image file? :) Sir/ ma'am.
C++

Avatar of undefined
Last Comment
trinitrotoluene

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
sarabande

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
pepr

If you have some old code that should be modified, then I wish you really good mood -- especially if it is a GUI application with event handlers implemented via virtual methods (incompatibly with any other compiler, if I recall correctly). The C++ language in Turbo C++ is very outdated, and if you are not forced by circumstances, you should throw that compiler away.

As Sara wrote, you can have a very decent C++ compiler for Windows for free -- Visual Studio 2013 Community edition https://www.visualstudio.com/en-us/news/vs2013-community-vs.aspx
trinitrotoluene

let me add my 2 cents for your original problem.

Native C++ can't load and display images all by itself. You will need to use a library to do this.

OpenGL is one and if you are a Microsoft fan then look at the facilities offered by the .Net framework. I'm not a fan of managed code so I wouldn't recommend going the .net way
trinitrotoluene

But before you attempt my suggestion do what the 1st 2 experts have recommended
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes