M
Michi Henning
I've been looking at the doc to find the answer to this but
didn't get very far. Assembly.LoadFile() seems to be close,
but not quite the right thing...
I have a DLL containing code written in C. In my C# code,
I want to check whether the DLL exists and, if so, load it.
Otherwise, if the DLL isn't there, the C# code can make do without it.
(The DLL contains optional functionality.)
In other words, I'd like to do explictly what is done implicitly
by [DllImport("MyLib.dll")] and check whether the DLL could be loaded.
Can anyone give me a hand with this?
Thanks,
Michi.
didn't get very far. Assembly.LoadFile() seems to be close,
but not quite the right thing...
I have a DLL containing code written in C. In my C# code,
I want to check whether the DLL exists and, if so, load it.
Otherwise, if the DLL isn't there, the C# code can make do without it.
(The DLL contains optional functionality.)
In other words, I'd like to do explictly what is done implicitly
by [DllImport("MyLib.dll")] and check whether the DLL could be loaded.
Can anyone give me a hand with this?
Thanks,
Michi.