Non classic ASP site has both the dlls referenced and its working perfectly fine in there.
For classic asp site, after registering the dlls on the server side, i need to make sure that third party dll is loaded before a method in my dll can utilize it. I would need to do some thing like following but how can i check that the third party dll is loaded via "using" first and if not then import?
Code:
Class TestDll
{
//import your tested DLL here
[DllImport("kernel32")]
public extern static int LoadLibrary(string lpLibFileName);
}
try
{
TestDll test = new TestDll();
}
catch(DllNotFoundException ex)
{
return false;
}
Bookmarks