I am calling a c++ dll using DllImport and is loading a number of functions.
I all work fine but I need the code to be able to react to a case where the
dll is missing or some of the functions are missing.
My C++ code looks like this:
if(!Dll_)
Dll_ = LoadLibrary(dllname_.c_str());
if(Dll_)
{
SetMixture_ = (tdSetMixture_*)GetProcAddress(Dll_, "SetMixture");
if(!SetMixture_)
///and so on
How to I write the same code in C#?
Thanks Torben