try { m_R->AddNew(); m_R->PutCollect("FoodNo",_variant_t(m_no)); m_R->PutCollect("FoodCls",_variant_t(m_cls)); m_R->PutCollect("FoodName",_variant_t(m_name)); m_R->PutCollect("FoodConstitute",_variant_t(m_make)); m_R->PutCollect("Nutrition",_variant_t(m_value)); //m_R->PutCollect("Photo",_variant_t(m_photo)); m_R->PutCollect("Price",_variant_t(m_money)); if (0 == strcmp(m_special,"ÊÇ")) { m_R->PutCollect("IsSpecial",_variant_t("1")); } if (0 == strcmp(m_special,"·ñ")) { m_R->PutCollect("IsSpecial",_variant_t("0")); } m_R->PutCollect("FoodMaker",_variant_t(m_chefname)); m_R->Update(); } catch(CException e) { MessageBox("error"); } MessageBox("Ìí¼ÓÊý¾Ý³É¹¦!~","Ìáʾ¿ò!",MB_ICONINFORMATION | MB_OK); CDialog::EndDialog(5); }
VC 向SQL中添加数据
最新推荐文章于 2023-05-18 10:50:13 发布