Search found 3 matches
- Fri Jul 29, 2011 3:53 am
- Forum: wxWidgets Development (Chinese)
- Topic: wxwidgets中wxlistctrl控件里面的值怎么导出到excel
- Replies: 6
- Views: 6388
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"))) { wxM...
- Fri Jul 22, 2011 1:18 am
- Forum: wxWidgets Development (Chinese)
- Topic: wxwidgets文本读取字符串(含中文)
- Replies: 1
- Views: 3204
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(c...
- Thu Jul 21, 2011 9:14 am
- Forum: wxWidgets Development (Chinese)
- Topic: =自我介绍=(新人可来这里对自己作自我介绍)
- Replies: 150
- Views: 355830
Re: =自我介绍=(新人可来这里对自己作自我介绍)
做应用界面、工作需要。