Sunday, 15 March 2015

c# - How can I show an error message when trying to run an exe file without its dlls? -


I have a C # application that has added a DLL to the context. When I try to run Windows X from Windows (after compilation) and DLL is replaced then I want to apply to show an error message.

How can I do this in code?

If exe can not find any required dlls, it will already display an error Something on the lines of:

The program can not start because example.dll is missing from your computer. Try to re-install the program to fix this problem

The fact is that you can not find one of the many things:

A) DLL is not actually referenced by your program.

b) You have added DLL to the XE.

c) The DLL is found elsewhere by CLR (thanks pondidem)


No comments:

Post a Comment