• Include images in VS2010 projects
    8 replies, posted
  • Avatar of MickeyCantor
  • Ok so i need to use a png file in my VC project, i know that if i place it in my debug folder and load the image "name.png" it loads fine, but what if i wanna load from a different source? How would i go about that?
  • Avatar of MickeyCantor
  • [QUOTE=Overv;36041045]Specify what you mean by "different source".[/QUOTE] well im trying to organize my project, and i wanna put all my textures in one folder that my project can just pull from, instead of putting all my png files in the debug folder
  • Avatar of HeroicPillow
  • [QUOTE=MickeyCantor;36041130]well im trying to organize my project, and i wanna put all my textures in one folder that my project can just pull from, instead of putting all my png files in the debug folder[/QUOTE] instead of using "image.png" use "subfolder/image.png", or whatever. Or set a variable named [ourImageFolder] and use that to properly prepend the images. You should also make sure that your [url=http://img137.imageshack.us/img137/2228/20120521112905.png]working directory is set up properly[/url] if you're debugging inside of visual studio.
  • Avatar of MickeyCantor
  • [QUOTE=HeroicPillow;36041204]instead of using "image.png" use "subfolder/image.png", or whatever. Or set a variable named [ourImageFolder] and use that to properly prepend the images. You should also make sure that your [url=http://img137.imageshack.us/img137/2228/20120521112905.png]working directory is set up properly[/url] if you're debugging inside of visual studio.[/QUOTE] Awsome it works, thanks, learning C++ was a task in its own, now understanding the IDE is another feat i must under go p.s. if anyone knows a good resource to start learning all the features, and options of VS2010, that would be wonderful
  • Avatar of Bang Train
  • [QUOTE=AlienCat;36068542][url]http://msdn.microsoft.com/library/default.aspx[/url][/QUOTE] You know thats 0 help..... thats the same thing as just doing fuckinggoogleit.com....aka worthless
  • Avatar of AlienCat
  • [QUOTE=Bang Train;36068748]You know thats 0 help..... thats the same thing as just doing fuckinggoogleit.com....aka worthless[/QUOTE] Yes, in this case that site was more useless then I thought but in some cases it is a good site. The problem is that there aren't many VS2010 tutorials. What he asked was about ALL features in visual studio that is impossible to find if you do not know what you are looking for. Unless you have the ultimate tutorial?
  • Avatar of Zeh Matt
  • [URL="http://msdn.microsoft.com/en-us/library/cc665707%28v=vs.90%29.aspx"]http://msdn.microsoft.com/en-us/library/cc665707(v=vs.90).aspx[/URL] Only works with ATL/MFC