In response to this comment "please tell me how can I do this instruction":
To troubleshoot the LoadLibrary() failure, run the application under a
debugger and enable first chance exception handling for the C0000005
Access Violation exception. If an access violation occurs when the
LoadLibrary() function is called, the application will break into the
debugger. The debugger's call stack can then be used to trace where
the exception occurred. The stack trace should help you narrow down
the actual problem related to the exception being encountered.
Open your project in Visual Studio
In the menu, click Debug
> Exceptions
In the Exceptions
window, click Find...
and enter C0000005
click Ok
Check the box next to the highlighted exception under the column Thrown
.
Now, when you debug your program and the exception is thrown, it will break and you should be able to at least inspect the exception details of the thrown exception.
It's likely you'll be thrown into disassembly window so you may not see any readable code. If the exception detail isn't enough, you could try decompiling with Dot Peek.
Here's a tutorial on enabling Dot Peek as a symbol server. Doing this will hopefully decompile the library on-the-fly so you can start inspecting the line of code that has caused the exception.