error while loading QtNetwork4.dll
I have created one C++ dll project using QTCreator, this project depends on QtNetwork4.dll since it uses QTcpSocket inside it. when I put QtNetwork4.dll in the same project output folder and when trying to load my dll using LoadLibrary() call, it is giving error as “This application has failed to start because QtNetwork4.dll was not found. Reinstalling the application may fix this problem”. When I try to open my dll in dependstool it is reflecting my exported functions from dll.
As I understood it, the LoadLibrary call is for loading Ashish’s own DLL which in turn depends on QtNetwork4.dll.
QtNetwork4.dll must be stored to the directory where your executable .exe is, not into the folder where your own DLL is.
As a side note: Did you consider using QLibrary to load your DLL in a platform independent manner?