Before you can use Bank Wizard to perform validation, it must be initialised and any conditions handled. You should report any conditions that occur during initialisation to a user who can react appropriately depending on the severity:
You can report these conditions as screen messages, system logs or email them to the user. You must also decide whether you want your application to operate without Bank Wizard or without a country, for example, if the licence for Spain has expired.
This example shows the simplest sequence of calls you can use.
/* Initialise a return code to show the status of the initialisation */ ret = OK /* Create the handle used to return any conditions caused by the initialisation process */ BWICreateHandle(h) /* Check that the handle is valid */ if (BWIValidHandle(h) != 0) { /* If not valid, log the error and send a suitable return code */ logBWCondition(h,"Initialise") return NO_BANK_WIZARD /* Run the initialisation process */ BWIInit(h) /* Log the initialisation and any conditions */ logBWCondition(h,"Initialise") /* Check for any fatal conditions */ if (BWINext (h,BWI_N_FATAL)) { /* Set a return code if Bank Wizard is unavailable */ ret = NO_BANK_WIZARD } /* Free the handle */ BWIFree(h) /* This is when you cache the DTFs using a new handle, if required. You must cache each country individually */ /* Finish */ return ret |