Question Dynamic namespace(dll) import(loading)

kruyoupatel

New member
Joined
Mar 9, 2012
Messages
1
Programming Experience
Beginner
Hello Everyone,

I am using the Microsoft Encoder 4.0 dll's for capturing any activity. I have used registered dll as been imported in my project. but if the expression is not installed then there comes error in my application code.(actually the dll is missing to be used if expression encoder is not installed).
I am new to vb.net and need any suggestions on "how to check for available dll and use it in my code?"
 
A namespace and a DLL are two very different things and importing a namespace and referencing or loading an assembly, i.e. a .NET DLL, are two very different things.

The solution to this is staring you in the face: simply inform your users that Microsoft Encoder 4.0 is a prerequisite for running your app and provide them a link to download and install it. You could even create a prerequisite package and have you ClickOnce or Windows Installer package install it for them. The alternative is to set the Copy Local property of the reference to True and then, when you build, the DLL will be copied to the output folder along with your EXE. You then simply deploy both and you're good to go, assuming that that DLL doesn't have more dependencies that might also not be installed.
 
Back
Top