类型:转载 责任编辑:asp 日期:2007/03/01
rdcfunction.create(_t("student"),s_child,r,this,idc_remotedatactl,null,false);
m_rdcfunction.setdatasourcename(_t("student"));
m_rdcfunction.setsql(_t("select * from class"));
m_rdcfunction.setusername(_t(""));
m_rdcfunction.setpassword(_t(""));
m_rdcfunction.setcursordriver(2);
// connect it to idc_rdcstudent
m_dbgfuntion.create(_t(""),ws_visible|ws_child,r,this,idc_remotedatactl);
lpunknown pcursor=m_rdcfunction.getdsccursor();
assert(pcursor!=null);
m_dbgfuntion.setdatasource(pcursor); //bind the grid
m_dbgfuntion.bindproperty(0x9,&m_rdcfunction);
其中:m_rdcfunction是remotedatacrl类型的变量,m_dbgfuntion是dbgrid类型的变量,请问在m_rdcfunction的creat函数中_t("student"),是指的是什么?看了函数原型是lpctstr lpszwindowname,请问在我的应用程序中creat的第一个参数该是什么呢?
推荐阅读