Home > Software engineering >  Win32, third-party DLL how to merge into exe
Win32, third-party DLL how to merge into exe

Time:12-01

In c + + write a simple Win32 application, in the project into a dynamic link library libxl. DLL to achieve XLSX, XLS, speaking, reading and writing,
But release the compiled in release folder with the Main. Exe and libxl. DLL this two files,
Delete libxl. DLL file complains
I'd like to generate only a exe file and can run normally, can realize the function of the original, but can you tell me how to solve?

CodePudding user response:


Relying on the a library, lead to the generated files are as follows:

Like in does not affect the. Exe under the condition of normal operation, the generated. DLL merged into exe, makes a single green version exe can run smoothly,

CodePudding user response:

Add DLL in the form of resources to the EXE, and then EXE needs to call DLL in the interface, will release DLL resources (FindResource/SizeofResource/LoadResource/LockResource/FreeResource) to the local, then dynamic LoadLibrary/GetProcAddress call () loaded,

CodePudding user response:

Dll using static connection!