ShapeFinder2 OCX Reference 15.0
Events

Functions

void CVCError (ErrorCode ErrorCode, BSTR ErrorString, boolean *Continue)
 This event is fired, if an error occurs in the ShapeFinder2 Search Control. More...
 
void ImageUpdated ()
 Generated when the image object has changed e.g., a new image has been passed to the control. More...
 

Detailed Description

Function Documentation

◆ CVCError()

void CVCError ( ErrorCode  ErrorCode,
BSTR  ErrorString,
boolean *  Continue 
)

This event is fired, if an error occurs in the ShapeFinder2 Search Control.

 An error could be, for instance, an invalid image.
Attention
Please include the appropriate header file for your compiler (cvcerror.*).
Parameters
[in]ErrorCodeA unique number describing the error. The following error codes have been defined:
1CVC_E_ERROR
 This error cannot be described more precisely.
2CVC_E_PARAMETER
 A parameter (property) is invalid.
3CVC_E_FILEIO
 A classifier file could not be loaded.
5CVC_E_MEMORY
 Memory could not be allocated.
6CVC_E_INVALIDPLANE
 The plane specified in the #PlaneIndex property is invalid.
16CVC_E_NOIMAGE
 There is no image assigned to the control.
[in]ErrorStringSpecifies the error text of the output.
[in,out]ContinueThis specifies whether execution should continue despite the error. The user can overwrite the value in order to change the default action. The default value depends on the function that caused the error.
TRUE specifies that a message box will appear to inform the user of the error. FALSE means that it is possible to perform custom error handling e.g., use a self-defined message-box.
Related Topics:
#Execute Method
Supported platforms:
Win32
Examples:
Visual Basic - VB ShapeFinder2 OCX Example

◆ ImageUpdated()

void ImageUpdated ( )

Generated when the image object has changed e.g., a new image has been passed to the control.

Supported platforms:
Win32
Examples:
Visual Basic - VB ShapeFinder2 OCX Example