visual c++ - Error while passing integer data as parameter from textbox at run time while inserting into ms access database using c++ mfc -


my code follows

int x=0; cstring number; try { // open database database.open(null,false,false,sdsn); csampledlg sample=new csampledlg();  // allocate recordset crecordset recset( &database );  // insert data recset.m_pdatabase->begintrans(); getdlgitem(idc_edit1)->getwindowtext(number); x=_wtoi(number);       recset.m_pdatabase->executesql(l"insert  categories (category) values(+=@x)"); 

i error in above line while inserting integer data @ runtime text box


Comments

Popular posts from this blog

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -