Including graphic files as part of project/build ?

Hi there,

How does one include support graphic files as part of a project

i.e. I have some default graphic files that I need to link into the project to ensure they are distributed as part of the application and are set-up in pre-specified folders.

This is for Visual Studio VB Express by the way.

MRW



Answer this question

Including graphic files as part of project/build ?

  • c o e s u r f

    I have just finished an article for Coding4Fun that will help you, The article goes through creating a base application and converting it to a Template. Included in the process is a couple of quick steps to include DirectX textures and files, you will be able to use the same process to include graphic files in you application.

    http://msdn.microsoft.com/coding4fun/weekend/apptemplate/default.aspx


  • Greg Fiore

    Awesome as always!

  • Cleo HUANG - MSFT

    Hi Again,

    Ok, I followed your advice and set-up folders within the project.

    Added the graphics OK.

    However, now I need to reference the graphics in my application.

    I am not sure how to create the "portable" path reference that will always point to the files irrespective of how the project get built.

    e.g. picturebox1.imagelocation =

    Is there some kind of proxy for the project location

    MRW

  • Including graphic files as part of project/build ?