Application failed to start becoz .dll not found
Hi All,
I have read many forum answers on this error but I could not found solution.
I am using MFC Application in VS 2005. I my application I have created one .dll file named VNCHooks.dll which is running before the my MFC solution .exe file. Now when I run it uising F5 I got tjhe error like below...
This application has failed to start because VNCHooks.dll was not found.Re-installing the application may fix this problem.
in the Messagebox.
I tried it to copy in C:\WINDOWS\system32 but it still gave me same error.Before some time it was working very nice but suddendly it got problem.
So, kindly reply if you got some solution or any suggetion.
Thanks in Advance.
Ashish
# 1 Re: Application failed to start becoz .dll not found
What exactly are you trying to say with DLL "is running before the my MFC solution exe"?
You said it used to work. What did you change that stopped it working?
cilu at 2007-11-10 22:24:30 >

# 2 Re: Application failed to start becoz .dll not found
What exactly are you trying to say with DLL "is running before the my MFC solution exe"?
You said it used to work. What did you change that stopped it working?
My mean that my MFC project depends on that .dll project so it will run(debug) first.
# 3 Re: Application failed to start becoz .dll not found
This application has failed to start because VNCHooks.dll was not found.Re-installing the application may fix this problem. in the Messagebox.Well that message means what it says -- the DLL could not be found.
I tried it to copy in C:\WINDOWS\system32 but it still gave me same error.Before some time it was working very nice but suddendly it got problem.How do we know you actually did what you say you did? If c:\windows\system32 is in the search path, and VNCHooks.dll is there, and any other DLL that VNCHooks.dll depends on is there, then you won't get that error.
The following small program could have been written to test these things:
#include <windows.h>
#include <iostream>
int main()
{
HMODULE hMod = LoadLibrary("vnchooks.dll");
if ( hMod )
{
std::cout << "vnchooks.dll was found";
FreeLibrary( hMod );
}
else
std::cout << "vnchooks.dll was not found";
}
Compile this as a console program, and run it. What message shows up?
Regards,
Paul McKenzie