Home > Back-end > Help: about C builder call hikvision SDK (VM) secondary development
Help: about C builder call hikvision SDK (VM) secondary development
Time:09-17
Younger brother novice, recently oneself groped in a small project, secondary development of hai kang SDK using c + + builder, a problem calls in this part, hope to help you a great god!
This is about the sea, operator instructions, which are going to create a handle to the back of the steps, I do not know the specific meaning, I also only in accordance with the general call steps, from the sea, the DLL generated in c + + builder available. The lib files, will be. DLL. Lib. H in engineering, in. CPP document begins to statement The next question there are a few points, first of all is I use a button control to trigger the called function, should be how to write the specific content in the button (the visual part of the operator before I was for my own use halcon have written some simple, also the call is successful, but don't know how to call this time, after all, only need through the global variable before import and output images, inside the button to add another action (); Is ok)? The second is to check it on the website of the dynamic and static method I tried, there are some problems, is also not clear my grammar problem or operator of invocation style has a problem, for example: Wish you a great god glad! The younger brother in this thank you very much!
CodePudding user response:
Returns the handle to keep up in the first place, with a global variable, or the main form of member variables can also, Links symbols not found, the library has been added to the project, either the library path is not set, or library format has a problem, if you are building a 32-bit program, want to use implib establish import libraries, 64, if want to use mkexp,
CodePudding user response:
I use sea kang interface, used two ways, are normal, Way 1: direct dynamic library calls, write oneself use interface functions to separate the dynamically loaded again, running normally, is complex, Method 2: HCNetSDK. Lib is copied to the BCB bin directory, run coff2omf - lib: HCNetSDK. Ms lib BCB HCNetSDK_BCB. Lib, generate a.lib file, the lib library added to their own projects, # include "HCNetSDK. H" also need to declare, when using can directly according to the C function to use, very convenient,
Method 3: HCNetSDK. DLL copied to BCB bin directory, run implib - af HCNetSDK_BCB. Lib HCNetSDK. DLL, which would be an error generated lib library use, I didn't study how to use again,