Click to See Complete Forum and Search --> : Check to see if a DLL is available before execution


dfb78
January 6th, 2003, 01:42 PM
I have a solution with a DLL project, which is referenced in another project in the solution (the client app). I have searched on the web, as well as all of my books, but they only show examples without error checking.

I'm trying to check whether the DLL exists before fully loading the app. Do I just need to add code in my Form1_Load event that checks to see if the file exists? If that is the case, I already know how to do that. I just wanted to see if there was an easier way to possibly check and see if the reference exists.

Thanks

pareshgh
January 6th, 2003, 04:59 PM
does these dlls get loaded as soon as you load ur application? before Application.run ( ....) in main you could check the path and reference.

Paresh

dfb78
January 7th, 2003, 06:49 AM
That worked, thanks!

WillemM
January 7th, 2003, 09:53 AM
How about plug-in functionality ?
Is that what you mean here?? I am still looking for a solution for making plug-ins for my program...
They will need to be activated in the options form of my application and so only be loaded when activated in the options...
Is this possible ? And if yes, how ?

pareshgh
January 7th, 2003, 10:51 AM
generally plugins are used while displaying embeded content in browser. However you could start making plugins in your application also. since the architecture you should support is
"When to load the plugin" since browser sees for MIME type for that. you need to read some articles on plugins

-Paresh