Search found 111 matches

by greg
Thu Dec 09, 2010 3:10 pm
Forum: C++ Development
Topic: Excel file read
Replies: 25
Views: 9326

Thanks PB
I tried Your code but this

Code: Select all

if (excel.GetObject(sheets, "ActiveWorkbook.Worksheets"))
always returns 0.
What am I doing wrong?
By the way how can I get number of sheets?
by greg
Wed Dec 08, 2010 1:09 pm
Forum: C++ Development
Topic: Excel file read
Replies: 25
Views: 9326

You wrote
I think just conversions between C++/wx values
Can You give a little sample how can I read cell contens
from xls file using wxOLE
I'm not going to expand BasicExcel at all.
by greg
Wed Dec 08, 2010 10:13 am
Forum: C++ Development
Topic: Excel file read
Replies: 25
Views: 9326

BasicExcel has a lot of limitations and that's why I can apply
this project. It crashes while reading xls file.
Looking for some sample via wxOLE and wxAutomation.
Can anybody help me?
by greg
Tue Dec 07, 2010 6:04 am
Forum: C++ Development
Topic: Excel file read
Replies: 25
Views: 9326

That's my piece of code. I can open xls file via wxCOM. But I don't know how to read a cell at row from given sheet. wxOleInitialize(); wxAutomationObject ExcelObject; wxString FileName = filename; ExcelObject.CreateInstance("Excel.Application"); ExcelObject.CallMethod("Workbooks.Open", FileName); E...
by greg
Mon Dec 06, 2010 2:07 pm
Forum: C++ Development
Topic: Excel file read
Replies: 25
Views: 9326

Excel file read

Hi
How can I read data from excel file (from sheet=2).
by greg
Fri Jul 30, 2010 8:58 pm
Forum: C++ Development
Topic: Delay time after opening my frame
Replies: 7
Views: 1658

Thanks guys for Your advice.
Now my problem is solved.
by greg
Fri Jul 30, 2010 12:58 pm
Forum: C++ Development
Topic: Delay time after opening my frame
Replies: 7
Views: 1658

thanks catalin
I can not understand Your solution in details.
Can you give me a little sample showing Your solution?
by greg
Fri Jul 30, 2010 11:54 am
Forum: C++ Development
Topic: Delay time after opening my frame
Replies: 7
Views: 1658

Delay time after opening my frame

I'm loading my frame.
How can I load wxMessageBox dialog after 1 sec.
and after next 1 sec. automatically close.

Thanks in advance.
by greg
Fri Jul 30, 2010 6:27 am
Forum: C++ Development
Topic: wxDocument question
Replies: 1
Views: 424

wxDocument question

I'm using docview sample from wx\samples.
I'm opening my document using wxDocTemplate.
When click open on menu item my dialog rise up and I can indicate file.
How can I catch event when wy dialog for file choosing opens.
Thanks in advance.
by greg
Thu Jul 22, 2010 10:20 am
Forum: C++ Development
Topic: Append line to existing text file problem
Replies: 2
Views: 904

Thanks illnatured for help
Problem solved.
by greg
Thu Jul 22, 2010 5:33 am
Forum: C++ Development
Topic: Append line to existing text file problem
Replies: 2
Views: 904

Append line to existing text file problem

Hi
I'd like to append new line to existing text file.
I tried to use wxFile::write_append method but without success.
I'd like to open file write new line and close file and etc.
Can anybody help me and give a little sample.
by greg
Fri Jul 16, 2010 5:22 am
Forum: C++ Development
Topic: Mfc modal dialog and wxWidget controls
Replies: 2
Views: 492

Thanks Auria for Your reply
but I can not see in that sample
solution my problem. I'd like to add wxWidget controls in MFC dialog and here is the sample how to open MFC dialog from wx dialog.
by greg
Thu Jul 15, 2010 8:33 am
Forum: C++ Development
Topic: Windows mobile and serial port read problem
Replies: 1
Views: 370

Windows mobile and serial port read problem

Hi!
I'd like to read data from serial port on windows mobile 6.0.
I downloaded wxCTB project. It works well on Windows XP, but when porting to WM I can't compile.
How can I read serial port on Windows Mobile 6.0.
I'd like to read GPS data via serial port.
Thanks in advance.
by greg
Wed Jul 14, 2010 7:44 pm
Forum: C++ Development
Topic: Mfc modal dialog and wxWidget controls
Replies: 2
Views: 492

Mfc modal dialog and wxWidget controls

Hi, I want to write a little plugin to bigger program. This program has its own resources and allows load MFC dialogs. And here is my problem. My plugin opens MFC modal dialog (or dialog from program resources). How can I add wxWidget controls and events to my MFC dialog. Is such a possibility. Mayb...
by greg
Sun Jul 11, 2010 10:06 am
Forum: C++ Development
Topic: Zoom problem on windows mobile 6.0
Replies: 6
Views: 1147

Thanks Doublemax Thanks Auria.
Really it was simple.
Now It seems to me that work perfect.
I tested on Win XP.
Tommorow I'm gonna verify on WM 6.0.