DLL failed to load using C # encapsulation Hoi Hong SDK ". \bin\hcnetsdk.dll ": The specified module could not be found

Source: Internet
Author: User

Recently in the study of the Network Camera two development, testing a sea Conway vision of the Network Camera, the program debugging time, appeared title error.

When debugging a random demo, the program runs normally, but when the program is introduced into my own program, it starts to error. The DLL files required for debugging are copied to the bin file according to the prompt of the development package, still error.

"Unable to load DLL" based on Error: \bin\hcnetsdk.dll ": Unable to find the specified module" information, found the definition of the error content, found the DLL file reference. The same as the error message is the path to the import DLL file, that is, the program cannot find the required DLL file under this path. So I copied all the DLL files into my own program's Bin folder, debug program, still error. Continue to study the characteristics of the demo program, found that the demo Program Bin folder does not have the Debug folder, so add DLL files and program run EXE file for the same path. Finally find a solution! I copy the DLL file to the Debug folder in my own program's Bin file, in the code that calls the DLL file in the program, modify the reference path: DLL ". \debug\hcnetsdk.dll "Modified, debug program, OK!

DLL failed to load using C # encapsulation Hoi Hong SDK ". \bin\hcnetsdk.dll ": The specified module could not be found

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.