Can I embed other files in a DLL?

前端 未结 4 1886
轮回少年
轮回少年 2020-12-16 15:09

I\'m writing a plug-in for another application through an API. The plug-ins are distributed a DLLs. Is it possible to embed other files in the DLL file like pdfs, images, ch

4条回答
  •  借酒劲吻你
    2020-12-16 15:39

    As an alternate option, if you need to unpack and save the files on the users machine (say a chm file you want accessible outside your app) you can also do the same with zip files.

    You said you wanted the file to be "Dragged" onto your app. Simply have your DDE events check to see if the file is a zip (maybe even using something like a jar with metadata) and unpack the necessary files, including the actual plugin.

    This is the same idea as openxml docs, they are really just zips in disguise.

提交回复
热议问题