How to embed a file into an executable?

前端 未结 6 1343
一个人的身影
一个人的身影 2020-11-27 18:21

I have a small demo executable wrote in C++ that depends only on one 5kb PNG image being loaded before it can run, which is used for a pixel text I made. Because of this on

6条回答
  •  日久生厌
    2020-11-27 18:40

    This is executable-format dependent, which means inherently operating system/compiler dependent. Windows offers the Resources system for this as mentioned in this question.

提交回复
热议问题