How do I check if an embedded resource exists or not?
问题 In Delphi, I'm building an HTTP Application, or a Web Server rather. It's essentially an entire website built into a single EXE file. The files I'm embedding include HTML, JS, CSS, SWF, PNG, XML, etc. The resource names are the same as the original filename, with the . replaced with an _ . In the end, there will be somewhere around 40-60 files embedded inside the EXE. The problem is I don't want to write code wrapping each and every individual file. Right now, I am declaring a constant for