Database development experience summed up the problem

1. Run the program quit unexpectedly

     Qt SDK, dll call camera, the compiler uses vc2015, call the dll using #pragma comment mode, switch to add a reference to this library file in the .pro file, the program runs normally.

 

#ifdef _WIN64
#pragma comment(lib,"..\\ScanHC\\three_parts\\HClass\\SDK\\Camera\\KSJ\\KSJApi.Lib\\KSJApi64.lib")
#else
#pragma comment(lib,"..\\ScanHC\\three_parts\\HClass\\SDK\\Camera\\KSJ\\KSJApi.Lib\\KSJApi.lib")
#endif//_WIN64

Solution: copy library files used to run the compiled file directory, such as debug directory, the program execution to normal.

Guess you like

Origin www.cnblogs.com/ike_li/p/11493396.html