Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Getting images to show by inputs?

Author
Message
PyPaw
13
Years of Service
User Offline
Joined: 13th Mar 2011
Location:
Posted: 14th Mar 2011 04:24
This may seem like a super easy question, but I'm new to programming and still learning the steps.

In my book (Games and Graphics in C++) I am trying to do the activity regarding Roman Numerals. I am suppose to make it so that if a person was to type in a number of 1-4 they'd get an image of the roman numeral. My problem is that I cannot get the image to appear or even load with errors. I'm at a loss. Can anyone shed some light for me?
DeadTomGC
14
Years of Service
User Offline
Joined: 11th Aug 2010
Location: LU
Posted: 14th Mar 2011 05:15
Ideally, you should provide your code.
Anyway, here is what I would do:


Just be sure that when you debug that the bmps are in the same folder as the main.cpp, and when you run the .exe file manually, be sure that the bmps are in the same folder as the .exe.

Login to post a reply

Server time is: 2024-09-28 12:39:18
Your offset time is: 2024-09-28 12:39:18