I'm trying to run my application on a system other then my computer and get a lot of errors of missing .dll files.
What I really not want is creating a folder that contains all the libraries and my application file.
I'm more interested in a way to import .dlls into my program. I know, that must be possible, because every "normal" program also does it this way (user only gets a setup.exe that extracts all needed dlls).. So how do I do that? Can I pass the dlls to the command line by compiling?
I'm using mingw_32 g++ compiler...
Hi kbw,
thank you for your fast support!
Well, using an already existing routine would be one way, but I'm more interested in a "small" solution just to import and export about 5 missing .dll files.
Before I started programming in c++, I coded with AutoHotkey, and there I had an easy command: FileInstall, source_path, dest_pathThis functionallity made it possible to import any file resource (.exe, .dll, .txt, .mp3 and so on..) into my executable and export it at runtime to "destination_path".
Now, using C++, I'm looking for such a functionallity. What would be the best way to import files into my program? I don't know.. Is there a possibility to pass the dll files to g++ in command line?
Nothing works. I also have a folder mingw_32/lib, where all those Qt5 libs are in static ".a" format, and I also include them: g++ -LD:/Qt/mingw_32/lib -lqt5core
So why does it still say:
"Missing Qt5Core.dll"
when I try to run it on another system??
My problem now is, I don't understand how that works.. If I guess right, BeginUpdateResource() is needed to get information about the executable, which will be extended. UpdateResource() is needed to embed the files into the executable, and what EndUpdateResource() is used for.. no clue.
What I still don't really understand is the concept of this.. The functions embed data to the executable, but how does the executable calls and exports those files while runtime?
Remember: FileInstall, source, dest
How das UpdateResource() tell the executable, that the embedded resource has to be exported to dest (path where it should be exported to after running the program)?