• Welcome to TechPowerUp Forums, Guest! Please check out our forum guidelines for info related to our community.
  • The forums have been upgraded with support for dark mode. By default it will follow the setting on your system/browser. You may override it by scrolling to the end of the page and clicking the gears icon.

how to make C++ display images

Joined
May 27, 2008
Messages
3,629 (0.59/day)
System Name Ultra 64
Processor NEC VR4300 (MIPS R4300i)
Motherboard proprietary design
Cooling Fanless aircooled
Memory 4.5MB 250 MHz RDRAM
Video Card(s) 62.5 MHz Reality Coprocessor
Storage 32 - 512 Mbit ROM Cartridge
Display(s) 720x576
Case Clear Blue Funtastic
Audio Device(s) 16-bit CD quality
Power Supply proprietary design
Mouse N64 mouse for use with N64DD
Keyboard N64 keyboard for use with N64DD
hi

im making a little program and i need it to display images.
Ive googled it and come up with loads of different librarys that allow you to create graphics for games etc but there isnt much in their tutorials on how to load up an image file and then display it onto the screen. Could anyone help me out with this?

many thanks ste
 
under which os are you coding? anything like mfc you are using ?
 
under which os are you coding? anything like mfc you are using ?

im running windows vista 64bit, and i dont understand what you mean MFC? sorry im fairly new at coding.
thanks
 
microsoft foundation class
 
are you using borland c++ or visual studio? or something else?
 
are you using borland c++ or visual studio? or something else?

Sorry i didnt realise this info would be important, im using visual studio, with something called HALL V3. Its what we were given when i started my uni course not too long ago to do the programming section. It contains all different .h files the the lectures have made for us to do different audio and middi edditing.
I dont think im using any MFC, or atleast realise im using one?
 
how do you create your application windows ?
 
errr if i understand your right i click on the hall exe it loads up visual studio then i just include iostream and the
using namespace std;
thing then start making my program
 
so you have a console only application? that does not create any new windows but sits in a "dos box" ? how do you plan on displaying images in that? ;)
 
so you have a console only application? that does not create any new windows but sits in a "dos box" ? how do you plan on displaying images in that? ;)

yea thats the one errrm to be onest i dont actually no, i recently did a lecture making bitmap images but that is a huge pain i would be allot easier if i could make display one already created, i just asummed that if i could create bitmaps then it would be able to display premade ones. I gues i was wrong?

edit:
Untitled921.jpg

Untitled2.jpg
 
What you are trying to do IS possible, just not with the standard cmd.exe console. Sadly it seems you might need to use DX. Here is a good start for you: http://www.directxtutorial.com/Tutorial9/A-Win32/dx9A.aspx

thanks ill have a look, basicly what im trying to do is make a small program that i input a musical key like c# then it'l show me a image of the key and the notes in it, write out the notes in it and play them. I can do everything other then make it display the image. Sorry maybe i should have said this at the beginning, thanks for the help everyone

edit: well ive done it
Untitled.jpg

using a library called the CLmg Library
http://cimg.sourceforge.net/index.shtml
if anyone else needs to do the same thing all info is on that page

thanks for all the help with this guys :toast:
 
Last edited:
Back
Top