image not display while build is successful
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..!!"
" 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"
What type of image is it?