Image file not showing when trying to open from resources c++

  • Thread starter Thread starter Learner177
  • Start date Start date
L

Learner177

Guest
i have a code in c++ on visual studio 2015 an empty project in which i added a bitmap resource(a jpeg pic) now i am trying to open it from main using i have also include #include"resource.h" but its not opening the file what might be the reason?

can't i simply open it and show it in windows builtin photo viewer?

fstream file;

file.open("55f49fda-4db6-4c41-93d2-0311695e3cf8_5.jpg");

Continue reading...
 
Back
Top