经过zz的努力,vc环境向oracle插入数据搞定了,看着“保存成功”弹出来,数据在数据库中出现,心情那个激动啊,实在是太神奇啦,我都快喜极而泣了。他抛弃了sql.Format()这种方法,用拼接的方式,一段一段的拼到一起,比如:
sql = "insert into FMS_AutoMonTasK(AutoTaskId,MonFuncName,Task_Builder,TaskMakeTime,TaskBeginDate,TaskEndDate,Sdatennum,EDatenNum,TaskExecuteBeginTime,TaskExecuteEndTime,Taskloop,Tasktype,Save_Audiodata,TaskDesc) values(";
sql += (_bstr_t)AutoTaskId + ",'" + (_bstr_t)MonFuncName + "','" + (_bstr_t)Task_builder + "','";
sql += (_bstr_t)TaskMakeTime + "','" + (_bstr_t)TaskBeginDate + "','" + (_bstr_t)TaskEndDate + "',";
sql += (_bstr_t)Sdatennum + "," + (_bstr_t)EDatenNum + ",'";
sql += (_bstr_t)TaskExecuteBeginTime + "','" + (_bstr_t)TaskExecuteEndTime + "'," + (_bstr_t)TaskLoop + ",";
sql += (_bstr_t)TaskType + "," + (_bstr_t)Save_AudioData + ",'" + (_bstr_t)TaskDesc + "')";
希望对遇到类似问题的同志们是一个参考。
到此呢,属性页问题也解决了,只是新建了一个类,然后写了一个回调函数,这些网上都有一些例子,我就不班门弄斧啦。。