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
 
Back
Top