image not display while build is successful

asked 2015-06-23 05:48:33 -0600

bharat gravatar image

prog build successfully but image not load. i keep image where my c++ prog is store. it executes n display error block.

log details are below 1>------ Rebuild All started: Project: ConsoleApplication12, Configuration: Debug x64 ------ 1> Source.cpp 1> ConsoleApplication12.vcxproj -> c:\users\wel\documents\visual studio 2012\Projects\ConsoleApplication12\x64\Debug\ConsoleApplication12.exe ========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ========== . show output in cmd prompt "Error : Image cannot be loaded..!!"

edit retag flag offensive close merge delete

Comments

2

" i keep image where my c++ prog is store" - but that's not , where your program starts (your debug or release folder)

avoid the whole problem, by using an absolute path to the image, like "c:/my/images/1.png"

berak gravatar imageberak ( 2015-06-23 06:04:58 -0600 )edit

What type of image is it?

thdrksdfthmn gravatar imagethdrksdfthmn ( 2015-06-23 06:17:36 -0600 )edit