I want to embed a XML file into EXE with VS2013 (i.e. I don't want to ship the XML to my customer, only the EXE).
I'm using C++ (MFC), and I tried to put it into .rc
file. But it gives back only something like IDR_XML1
and in Resource.h
, there's #define IDR_XML1 108
Then how should I load this XML file in my code?
Thanks