Hi all,
I use:
try
AHandle:=Loadlibrary(libname)
except
AHandle:=0
end;
In WM 5 and 6 I have no problem, because the library exists. In Windows Mobile 4 this library does not exist. Therefore I want to prevent errormessages by using Try/Except.
However, if I use an arbitrary name for the lib (that certainly does not exist), all WM4, 5 and 6 throw an exception that "some of the elements could not be found".
I hoped the try.. except.. construction would prevent such an error. Is there another way to check the existance of the library without throwing an error?
tia!
John
[/code]