Search found 148 matches

by timg
Thu Nov 01, 2007 9:50 pm
Forum: Compiler / Linking / IDE Related
Topic: unresolved external symbol problem
Replies: 2
Views: 1116

In your project properties, on the Linker->Input page,
set Ignore Specific Library field to libcmtd.lib and try
again.
by timg
Tue Oct 09, 2007 9:38 pm
Forum: Compiler / Linking / IDE Related
Topic: Compiler error with wxAuiNotebook (unresolved external symbo
Replies: 3
Views: 548

Are you sure you aren't linking against the old libraries?

It seems SetFont was added in 2.8.5 (from the changes file)
by timg
Thu Oct 04, 2007 2:01 am
Forum: Platform Related Issues
Topic: excel application in wxwidgets
Replies: 1
Views: 505

If you just call quit, I believe Excel will prompt you to save any changes.

You could try this:

Code: Select all

		appo=objExcel->PutProperty("DisplayAlerts", false); 
		appo=objExcel->CallMethod("Quit"); 
That should make it just quit without asking anything.
by timg
Wed Oct 03, 2007 7:25 pm
Forum: Platform Related Issues
Topic: Excel Automation
Replies: 2
Views: 792

To get the sheet names, you can use this:

Code: Select all

		rng[0] = wxVariant((long) 3);
		res = xlbook.GetObject(xltmp1, "WorkSheets", 1, rng);
		appo = xltmp1.GetProperty("Name");

Just scan through how ever many sheets are returned from the Sheets.Count
by timg
Thu Sep 27, 2007 4:03 am
Forum: C++ Development
Topic: Question about the wxIcon
Replies: 3
Views: 417

just put this

wxInitAllImageHandlers();

into your app's OnInit() function.
by timg
Thu Sep 27, 2007 2:22 am
Forum: C++ Development
Topic: Question about the wxIcon
Replies: 3
Views: 417

did you call wxInitAllImageHandlers() ?

I think you need to do that if you want to load a png.
by timg
Wed Sep 26, 2007 7:30 pm
Forum: Platform Related Issues
Topic: Excel Automation
Replies: 2
Views: 792

Can't help at the moment on how to get the names of the sheets, but to get the number of sheets you can use this:

Code: Select all

		appo=xlbook.GetProperty("Sheets.Count");
assuming appo is a wxVariant and xlbook is a wxAutomationObject containing the active workbook.
by timg
Wed Sep 26, 2007 6:19 am
Forum: C++ Development
Topic: powerpoint application
Replies: 3
Views: 415

If that didn't work, you can try this method:

Code: Select all

wxVariant dpntr;
dpntr = presentation.CallMethod("Slides.Add"); 
wxAutomationObject slide;
slide.SetDispatchPtr(dpntr);
It has worked for me before in Excel.
by timg
Tue Sep 25, 2007 5:16 pm
Forum: C++ Development
Topic: powerpoint application
Replies: 3
Views: 415

If you are trying to talk to the slide you just added, you could try to use this: wxAutomationObject slide; presentation.GetObject(slide, "Slides.Add"); instead of this: presentation.CallMethod("Slides.Add"); wxAutomationObject slide; wxVariant name[1]; name[0] is equal to wxVariant("Slide1"); prese...
by timg
Wed Sep 19, 2007 11:36 pm
Forum: Platform Related Issues
Topic: wxAutomation and Excel application
Replies: 8
Views: 2063

I have not done anything with trying to automate Powerpoint.

Maybe you can look at the code I already posted for Excel and figure out how to translate your VB code. I would think the processes would be similar.
by timg
Tue Sep 18, 2007 5:52 pm
Forum: Platform Related Issues
Topic: wxAutomation and Excel application
Replies: 8
Views: 2063

This is the easiest way to add sheets. In VBA, you can specify some other parameters to tell it where to add the sheet, but I have not tried to do that with wxAutomation. (I'm not sure how to specify them from wxAutomation actually) By default, the sheet will be added before the active sheet, so you...
by timg
Fri Sep 14, 2007 6:41 pm
Forum: Platform Related Issues
Topic: wxAutomation and Excel application
Replies: 8
Views: 2063

res = xlbook.GetObject(xltmp3,"WorkSheets.Add"); This would get you a new sheet. You could set the name like this: appo=xltmp3.PutProperty("Name", "My Sheet"); Or add pictures like this: res = xltmp3.GetObject(xltmp1,"Pictures"); rng[0] = wxVariant("c:\\cutback.bmp"); appo=xltmp1.GetObject(xltmp4, ...
by timg
Thu Sep 13, 2007 5:47 pm
Forum: Platform Related Issues
Topic: wxAutomation and Excel application
Replies: 8
Views: 2063

wxAutomationObject *objExcel=new wxAutomationObject; wxAutomationObject xlbook; wxAutomationObject xltmp1; wxAutomationObject xltmp3; wxVariant appo, rng[4]; bool res; if ( objExcel->CreateInstance("Excel.Application") ) { res = objExcel->GetObject(xlbook,"Workbooks.Add"); res = xlbook.GetObject(xl...
by timg
Tue Aug 21, 2007 6:09 pm
Forum: wxCode
Topic: Plot raw data Points with wxPlotCtrl
Replies: 5
Views: 2569

you need to create a wxPlotData and add that.

wxPlotData is for plotting points.
by timg
Tue Aug 07, 2007 5:16 pm
Forum: wxCode
Topic: How to use wxctb?
Replies: 34
Views: 8774

How are you building it?

I downloaded the package, went into the build directory, ran the buildall.bat and it built the library and the sample with no problems at all.

I'm using Visual C++ 2003.