39c Subj : Re: dll error To : borland.public.cpp.borlandcpp From : Ed Mulroy [TeamB] Date : Fri Jun 11 2004 03:39 pm Try loading "garfio.dll" instead of "garfio" .. Ed > Jesús A. Bermúdez Silva wrote in message > news:40c9f517@newsgroups.borland.com... > > I have an application written in BC++ 5.02 which uses a > dll. I have developed this under Windows XP and under > such platform it works fine, but under other Windows > platforms it fails, eg under Windows 98 and Windows 2000 > I get the message dll not found, ie. the error code > ERROR_DLL_NOT_FOUND > > The code is as follows > HINSTANCE dllLib; > > dllLib = LoadLibrary("garfio"); > if ((unsigned) dllLib == NULL) > { > error message... > } > else > .... > > I place the dll garfio in the same folder as the application > that uses it. > Any suggestions why it fails in other platforms? . 0