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,

CodePudding user response:

refer to the second floor ZHGWBZHD 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,

Hello! About the way 1, will you please give a dynamic invocation instance code? Myself write of is all reference data at present, some does not explain very clearly that the way you 3 I also tried, the DLL file is generated by implib currently does in question (problem is not clear is the grammar or the lib), 2, about the way you I was moving coff2omf this application to generate lib elsewhere, copied to the same directory, then right-click the project and the add. Lib; . At the same time in front of the CPP also declares the # include "iMVS - 6000 platformsdkc. H", as figure error and post...

CodePudding user response:

reference 1/f, play big shoot early nuclear 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 library path is not set, or library format has a problem, if you are building 32-bit programs, to use implib establish import libraries, 64, if want to use mkexp,

Hello! Library paths already set implib and coff2omf these two tools have been tried, errors and to weigh the same, cannot link (I am copy these two tools to other places, the generated.lib file), as for is 32 or 64 bit project, could you tell me how to distinguish the?

CodePudding user response:

You maybe this is the old version, it is only 32 bit, set the library path: project - & gt; The options - & gt; C + + (Shared options) library on the right path

CodePudding user response:

Implib - a f HCNetSDK_BCB. The lib HCNetSDK. DLL, with this line, directly by the sea, the DLL, can generate BCB lib file
But one thing, you don't use the -a parameters, direct use:
Implib HCNetSDK. The lib HCNetSDK. DLL, lib files don't change the file name, file name is the same as the DLL file name
  • Related