Mr. Nom4ik
Mr. Nom4ik
CC#
Created by Mr. Nom4ik on 11/19/2022 in #help
❔ How to pack third-party files together with exe and then access them from the code?
How to make a "packer" in C#? I have a program, when launched, it should check whether it is installed on this machine, if it is already installed, then the process simply ends, and if it is not installed, it copies itself to the desired directory and also some system files are necessary to work in the same directory. How can package third-party files along with exe? Without the use of other programs like WinRar, which have this function. That is, third-party files need to be sewn into the executable file, which this program will then use.
3 replies
CC#
Created by Mr. Nom4ik on 11/18/2022 in #help
❔ import and unload dll
hello! I am doing something like a "plugin" system in my program, that is, the user selects a dll file, then performs some functions from it and can unload this dll file at any time and free up memory. I found a way to import a dll from here https://stackoverflow.com/q/18362368, and a way to unload a dll from here https://stackoverflow.com/q/2445536, I have a question, what will happen with asynchronous loops during unload dll? How can I unload a dll so that all its processes are terminated?
4 replies