.Net API

<< Click to Display Table of Contents >>

Navigation:  Main >

.Net API

Tutorial-VB_32x32


 

The CVB.Net API (refer also the API guide chapter) is a new object oriented wrapper for the CVB SDK.

It has been designed to harmoniusly integrate into the .Net API and makes leveraging the abilities of CVB for complex applications written in one of the .Net/CLR languages easier than the classic C-like API.

CVB.Net has been built versus the .Net 4.0 runtime and therefore requires Visual Studio 2010 or higher to work with.

 

For GUI integration, Cvb.Net offers two options:

Windows Forms applications may use the component Stemmer.Cvb.Forms.Controls.Display on their forms.
This component is based on the CVCDisp.dll and CVGenApiGrid.dll of CVB and integrates all the features that the CVDisplay.ocx and CVGenApiGrid.ocx offer.
For the display that includes all *.opi plug ins.

WPF applications can use the Stemmer.Cvb.Wpf.dll which provides an implementation of a Display purely written in .Net and uses the Stemmer.Cvb.Forms.dll for the GenApiGrid WPF control.

 

GetInformation_16x16 Find tutorials in %cvb%Tutorial (Windows) and /opt/cvb/tutorial (Linux) directory.

 

Recommendation

Make sure the Cvb.Net you installed matches the architecture of your CVB installation.
While in principle all Cvb.Net DLLs except one (Stemmer.Cvb.Aux.dll) have been implemented as IL DLLs, the fact that there is currently no hybrid CVB installer (i.e. an installer that simultaneously installs the 32 and the 64 bit build on a 64 bit operating system) makes it necessary to stick with the architecture that has been installed on your system.
This specifically means that with a 64 bit installation one cannot expect an x86 build to run and vice versa and that Any CPU builds should not be used when working with a 32 bit installation on a 64 bit operating system.

(It is, however, possible to build an AnyCPU IL *.exe and then deploy it to either a 64 bit OS with the 64 bit build installed or a 32 bit OS with the 32 bit build installed)

To make Stemmer.Cvb.Forms.Controls.Display work in the Visual Studio Forms designer even if CVB has been installed for 64 bit, the 64 bit installer of the Cvb.Net preview installs a few additional DLLs into C:\Windows\SysWOW64 and the 32 bit build of Stemmer.Cvb.Aux.dll in the Global Assembly Cache that allow Visual Studio the instantiation of a 32 bit Stemmer.Cvb.Forms.Controls.Display in the designer.

 


 

CVB.Net Reference

 

Classes