We have a normal C++ MFC application but we kept a .dll file in the same path where our application resides. When we start the application the dll file present in the current directory also loaded and fall in an infinite loop and our real application is non-responsive because the name of the dll is one of the System module dll that is loaded by the framework from the system path.
The reason is it look in the currentdir instead of the system path on Priprity of Dll search.
How we can avoid this dll hijack issue in Windows ?
Means how to avoid the search of dll from current directory rather look at system path at first priority
People often wonder how they can safely dispose of their old computers without it costing too much. Here's a guide to a totally free method that I came up with.
1. Remove the hard drive, put a drill bit through it until you hear the platters inside shatter. Toss it in the bin. 2. Run a cleaning rag around the case and make it nice and shiny. 3. Place the computers in full view on the back seat of your car. 4. Park car in a quiet public car park with the windows cracked just enough so it's easy to reach in an unlock one of the doors. 5. Go and have some lunch or dinner.
When you return, I can almost guarantee the computers will be gone.