c++ - Count field incorrect syntax error -


for last several days i'm trying connect store procedure using odbc. crecordset code:

sp_insertsesmessagestore::sp_insertsesmessagestore(cdatabase* pdb)  : crecordset(pdb){ // param init m_return_value = -1; m_provider_idparam = _t(""); m_branch_idparam = _t(""); m_accountparam = _t(""); m_ses_user_unique_idparam = _t(""); m_display_nameparam = _t(""); m_smtp_addressparam = _t(""); m_message_type_idparam = 0; m_priorityparam = 0; m_subjectparam = _t(""); m_summaryparam = _t(""); m_template_idparam = _t(""); m_body_type_idparam = 0; m_tracking_idparam = _t(""); m_expiration_timeparam = _t(""); m_subcategory_idparam = 0; m_folder_idparam = 0; m_num_attachmentsparam = 0; m_access_idparam = _t(""); m_flagsparam = 0; m_favoriteparam = false; m_certified_idparam = _t(""); m_secure_response_otpparam = _t(""); m_message_idparam = _t(""); m_nparams = 24;  m_ndefaulttype = snapshot;} 

this dodataexchange.

void sp_insertsesmessagestore::dofieldexchange(cfieldexchange* pfx){ // rfx output param mapping /*pfx->setfieldtype(cfieldexchange::outputparam); rfx_long(pfx, _t("[@return_value]"), m_return_value);*/  // rfx input param mapping pfx->setfieldtype(cfieldexchange::inputparam); rfx_text(pfx, _t("[@provider_id]"), m_provider_idparam, 3); rfx_text(pfx, _t("[@branch_id]"), m_branch_idparam, 50); rfx_text(pfx, _t("[@account]"), m_accountparam, 255); rfx_text(pfx, _t("[@ses_user_unique_id]"), m_ses_user_unique_idparam, 8); rfx_text(pfx, _t("[@display_name]"), m_display_nameparam, 255); rfx_text(pfx, _t("[@smtp_address]"), m_smtp_addressparam, 255); rfx_int(pfx, _t("[@message_type_id]"), m_message_type_idparam); rfx_byte(pfx, _t("[@priority]"), m_priorityparam); rfx_text(pfx, _t("[@subject]"), m_subjectparam, 255); rfx_text(pfx, _t("[@summary]"), m_summaryparam, 255); rfx_text(pfx, _t("[@template_id]"), m_template_idparam, 255); rfx_int(pfx, _t("[@body_type_id]"), m_body_type_idparam); rfx_text(pfx, _t("[@tracking_id]"), m_tracking_idparam, 255); rfx_text(pfx, _t("[@expiration_time]"), m_expiration_timeparam, 16); rfx_int(pfx, _t("[@subcategory_id]"), m_subcategory_idparam); rfx_int(pfx, _t("[@folder_id]"), m_folder_idparam); rfx_int(pfx, _t("[@num_attachments]"), m_num_attachmentsparam); rfx_longbinary(pfx, _t("[@body]"), m_bodyparam); rfx_text(pfx, _t("[@access_id]"), m_access_idparam, 255); rfx_long(pfx, _t("[@flags]"), m_flagsparam); rfx_bool(pfx, _t("[@favorite]"), m_favoriteparam); rfx_text(pfx, _t("[@certified_id]"), m_certified_idparam, 100); rfx_text(pfx, _t("[@secure_response_otp]"), m_secure_response_otpparam, 50);  // rfx input_output param mapping pfx->setfieldtype(cfieldexchange::inoutparam); rfx_text(pfx, _t("[@message_id]"), m_message_idparam, 8);}  bool sp_insertsesmessagestore::execdirect(){ return open(crecordset::forwardonly, getdefaultsql(), crecordset::executedirect);} 

this statement i'm passing.

cstring sp_insertsesmessagestore::getdefaultsql(){ return _t("{call sp_insertsesmessagestore (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)}");} 

this auto generated code tool found on web. had isolated problem, cause of exception clongbinary member, can't find issue, suggestions?!


Comments

Popular posts from this blog

IF statement in MySQL trigger -

c++ - What does MSC in "// appease MSC" comments mean? -

android - MPAndroidChart - How to add Annotations or images to the chart -