Home > Back-end >  How to determine the lack of runtime DLL
How to determine the lack of runtime DLL

Time:10-17

Under the Windows program is dependent on a variety of DLL, want to run the program now can I add a judgment, to inform the user program because of the lack of which DLL to run, can be achieved, please?

CodePudding user response:

Looks like c + + builder 6 and have no DLL delay loading support, vc 6 start with

CodePudding user response:

DLL dynamic calls in this program, a call first to determine whether a file exists,

CodePudding user response:

General procedure inside there will be a lot of implicit DLL loading system, some DLL I am writing the program doesn't know when that will be required for example GPSVC. DLL, sysnft. DLL, so if is according to dynamic loading workload is too heavy,

About how lazy loading I haven't studied, you see, don't know if there is no other way

CodePudding user response:

reference 1st floor sololie response:
looks like c + + builder 6 and have no DLL delay loading support, vc 6 start with


Operating system when running my program will traverse me first import, then go to load all the required DLLS, if the load is not successful, the program will not run, because I am writing a third-party DLL, so this time should be a dllmain function will not perform

CodePudding user response:

Can, to analyze the executable's import section, demon elder brother have this code before, you can list the related DLL exe file

CodePudding user response:

Analysis of the PE file import table is only applicable to static call DLL, for dynamic invocation, the import table no trace,

CodePudding user response:

reference nealworld reply: 3/f
general procedure inside there will be a lot of implicit DLL loading system, some DLL I am writing the program doesn't know when that will be required for example GPSVC. DLL, sysnft. DLL, so if is according to dynamic loading workload is too heavy,

About how lazy loading I haven't studied, you see, don't know if there are no other feasible method

Only lazy loading lack DLL, can have the chance to execute code which DLL lack of judgment,

CodePudding user response:

Static DLL, analyze the exe rely on; Loadlibrary dynamic DLL, analysis code

CodePudding user response:

Know that rely on the DLL is bad judgment
  • Related