InitInstance

The InitInstance function initializes all data structures for the program instance and creates the necessary windows. InitInstance looks like a standard Windows initialization function except that it calls the InstallRecognizer function to load the default recognizer SREC. Windows loads the default recognizer automatically, so a program should call InstallRecognizer to load only recognizers other than the default recognizer.

The following fragment taken from the InitInstance function shows how the program loads the SREC recognizer:

BOOL InitInstance(

HANDLE hInstance, // Instance handle

int cmdShow ) // ShowWindow flag

{

.

.

.

//

// Load sample recognizer SREC

//

  • hrec = InstallRecognizer( (LPSTR) szSampleRec );

if (vhrec)

return TRUE;

else

{

MessageBox( vhwndMain, "Could not install recognizer SREC",

szPenAppWnd, MB_OK | MB_ICONSTOP );

return FALSE;

}

}

Software for developers
Delphi Components
.Net Components
Software for Android Developers
More information resources
MegaDetailed.Net
Unix Manual Pages
Delphi Examples
Databases for Amazon shops developers
Amazon Categories Database
Browse Nodes Database