在vc ++项目中嵌入XML资源并访问此资源 [英] Embed XML resource in vc++ project and acces to this resource
问题描述
我想在项目中集成* .xml文件并访问此资源。
i would like to integrate *.xml file in project and access to this resource.
我已经在* .rc中集成了xml文件(IDR_XML1 XML " ; res\\xml1.bin")
I already have integrate xml file in *.rc (IDR_XML1 XML "res\\xml1.bin")
我想像xml(使用tiniXML)一样使用这个文件来解析这个文件并执行函数。
i would like to use this file like an xml (with tiniXML) to parse this file and execute function.
我可以使用什么功能?
谢谢,
What function can i use?
Thanks,
Steph
推荐答案
>我可以使用什么功能?
>What function can i use?
你可以使用FindResource&将资源加载到内存中LoadResource。见这里:
https://msdn.microsoft.com/en-us/library/windows/desktop/ms648006%28v=vs.85%29.aspx?f=255&MSPPError=- 2147217396
You can load the resource into memory using FindResource & LoadResource. See here:
https://msdn.microsoft.com/en-us/library/windows/desktop/ms648006%28v=vs.85%29.aspx?f=255&MSPPError=-2147217396
戴夫
这篇关于在vc ++项目中嵌入XML资源并访问此资源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!