S
S
szlachcic2021-02-18 18:26:53
C++ / C#
szlachcic, 2021-02-18 18:26:53

How can I put music into one exe, regardless of whether it is on the PC?

everything is in the question. on the Internet, only the method turned out to be working when you specify a clear path to the file and if the file with the SAME name is found in EXACTLY SUCH DATALOG, then everything will work

Answer the question

In order to leave comments, you need to log in

2 answer(s)
H
HemulGM, 2021-02-18
@szlachcic

The question is simple. Add file to resources and read it from resources.

V
Viktor Zorin, 2021-02-18
@FutureAnge1

You select the necessary file in Solution Explorer and you install value of "Build Action" in "Resource". The file can now be accessed using a relative path.
602ec501d2735629735897.jpeg

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question