Search found 3 matches

by MrLiq
Fri Jul 29, 2011 3:53 am
Forum: wxWidgets Development (Chinese)
Topic: wxwidgets中wxlistctrl控件里面的值怎么导出到excel
Replies: 6
Views: 4859

Re: wxwidgets中wxlistctrl控件里面的值怎么导出到excel

最近研究了一些wxWidgets对Excel的操作,首先你要知道Excel里的属性以及方法调用。这个建议你学Excel,其他不多说。 给你段代码看看把: wxAutomationObject excelObject, rangeObject; if (!excelObject.GetInstance(wxT("Excel.Application"))) { // Start Excel if it is not running if (!excelObject.CreateInstance(wxT("Excel.Application"))) { wxMessageBox(wxT("Could...
by MrLiq
Fri Jul 22, 2011 1:18 am
Forum: wxWidgets Development (Chinese)
Topic: wxwidgets文本读取字符串(含中文)
Replies: 1
Views: 2424

Re: wxwidgets文本读取字符串(含中文)

首先你要读取文本: 使用wxFile或者wxTextFile wxTextFile txtfile; wxArrayString names; size_t lines ; size_t curLine;//字所在行 wxString curStr;//所在行字符串 size_t curPos;//位置 if (txtfile.Open(wxT("text.txt"))) { for (lines = 0; lines<txtfile.GetLineCount();lines++) { wxString temp = txtfile.GetLine(lines); if(curPos=temp...