D
D
Dmitry Orlik2018-06-25 08:47:04
C++ / C#
Dmitry Orlik, 2018-06-25 08:47:04

How to put all files in one exe?

For example, there is a program that displays a picture and sound). And it turns out that the exe itself, when launched, must find the audio track and photos and display them. How to make it all stored inside the program itself?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Taratin, 2018-06-25
@DwapDaDima

WinApi
https://stackoverflow.com/questions/11865269/win32...
https://msdn.microsoft.com/en-us/library/windows/d...
Qt
doc.qt.io/qt-5/ resources.html
Option for lazy
people enigmaprotector.com/en/aboutvb.html

A
Andrey, 2018-06-25
@poslannikD

the picture can be stuffed as a string, an array, a structure that stores the color of pixels, transparency.
The sound can most likely be stuffed in the same way.
But it's better to just put the resources next to the exe and not worry. Make a sound folder, a picture folder and load them into the program as needed, it's easier than dragging everything into one file.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question