Looking for file path of an embedded resource

  • Thread starter Thread starter james
  • Start date Start date
J

james

What class / method should I be using to get the full path to
an embedded resource ? In my case I have an .xml file
that my app uses, it is set as embedded resource, and
I have a control that needs to load it, but I do not want to hard
code the path since that may change for different installs.
i.e. GetPathForResourceOfName ( myResourceFileName )

thanks,

JIM
 
You can't get the filename of an embedded resource because it's embedded!
i.e. The contents of the file is copied into the assembly (DLL or EXE)
during the build process.

- Lee
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top