Export excel file with header

TeeChart for ActiveX, COM and ASP
Marc
Site Admin
Site Admin
Posts: 1227
Joined: Thu Oct 16, 2003 4:00 am
Location: Girona
Contact:

Post by Marc » Mon Jun 19, 2006 9:55 am

Hello David,

It seems that the source files being shipped with the current TeeChart version are slightly out of sync with the latest Library revision. Apologies for the inconvenience, we'll correct that for the next update.

I've posted the new classes to the attachments newsgroup:

news://www.steema.net/steema.public.attachments

Alternatively you can generate uptodate wrapper classes at any time in the following way:

- create a new dialog based project in mfc
- From the VC++ v6 IDE select "Project":"Add to project":"Components and Controls":"Registered ActiveX Controls" ... select "TeeChart Pro ActiveX Control v7" from the list.
- Accept with "OK" and the VC++ ClassWizard will generate all the classes related to the version of TeeChart registered. You may then re-use those class files in other projects.

Regards,
Marc Meumann
Steema Support

David
Advanced
Posts: 203
Joined: Tue Nov 08, 2005 5:00 am

Post by David » Mon Jun 19, 2006 10:01 am

Hi, Marc,

Thanks for your reply. I can't visit the newsgroups in the company. Would you please send me the zipped file of the new classes? Thank you very much!

As for the method you mentioned to generate the classes, it is only applicable to VC++ v6, but I am using VC++.NET 2003 and it could work that way. Thanks anyway!

David

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Mon Jun 19, 2006 10:04 am

Hi David,

Of course, I've sent the files to your forums contact e-mail address.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

David
Advanced
Posts: 203
Joined: Tue Nov 08, 2005 5:00 am

Post by David » Mon Jun 19, 2006 10:08 am

Hi, Narcís,

Got it! Thank you very much!

David

David
Advanced
Posts: 203
Joined: Tue Nov 08, 2005 5:00 am

Post by David » Mon Jun 19, 2006 11:13 am

Hi,

There is a problem with the new classes. After I replaced all of the old class files with the new ones, the project compile fails with this error message:

tchart.h(31) : error C2011: 'CTChart' : 'class' type redefinition

Then I used back the old tchar.h and and tchart.cpp, the compile passed.

Any suggestions
David

Marc
Site Admin
Site Admin
Posts: 1227
Joined: Thu Oct 16, 2003 4:00 am
Location: Girona
Contact:

Post by Marc » Mon Jun 19, 2006 12:08 pm

Hello David,

Please check if there are any compile tags at the beginning/end of the old TChart.h/.cpp files. You could copy those to the new header file. Those avoid redeclarations of TChart if calld from multiple source files.

ie.

#if !defined(AFX_TCHART_H__71AE5870_FEC8_405D_8C6F_9C8CE5D9EF3A__INCLUDED_)
#define AFX_TCHART_H__71AE5870_FEC8_405D_8C6F_9C8CE5D9EF3A__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

..... file contents.....

#endif // !defined(AFX_TCHART_H__71AE5870_FEC8_405D_8C6F_9C8CE5D9EF3A__INCLUDED_)

Regards,
Marc Meumann
Steema Support

David
Advanced
Posts: 203
Joined: Tue Nov 08, 2005 5:00 am

Post by David » Mon Jun 19, 2006 2:06 pm

Hi, Marc,

Yeah, it is fixed following your advice. But do I need to check all the class files manually? I noticed there are quite a few header files with different size and I opened some and the main difference is the compile tags missing in the new files. Will they be the same in the next release?

Thank you very much!
David

Marc
Site Admin
Site Admin
Posts: 1227
Joined: Thu Oct 16, 2003 4:00 am
Location: Girona
Contact:

Post by Marc » Mon Jun 19, 2006 5:30 pm

Hello David,

I don't think it necessary to check all the files and would only return those tags on a 'need to' basis as I don't think they are necessary unless multiple includes are made in your code that provoke the problem (doesn't always occur).

I would expect the next update to be similar to this one, we generate the library wrappers by using the VC ClassWizard and so let it auto-generate according to its syntax rules.

Regards!
Marc
Steema Support

David
Advanced
Posts: 203
Joined: Tue Nov 08, 2005 5:00 am

Post by David » Tue Jun 20, 2006 12:45 am

Thanks a lot, Marc.

Post Reply