When sending multiple sets of parameters, an application may need to point CT-Library to other locations in memory than for the previous set of parameters. To rebind the parameters, use ct_setparam() to provide a different location for the data. Here is the existing ct_setparam() declaration:
ct_setparam(cmd, datafmt, data, datalenp, indp) CS_COMMAND *cmd; CS_DATAFMT *datafmt; CS_VOID *data; CS_INT *datalenp; CS_SMALLINT *indp;
Provide new values for data, datalenp and indp parameters in ct_setparam() call to bind to different memory locations.
After a ct_send_params() call, the format of the parameters cannot be changed. Any calls to ct_setparam() made after a call to ct_send_params() must therefore pass a NULL value for datafmt.
Only parameters initially bound with ct_setparam() can be rebound.