Page 1 of 1
TeeExport and Win32 API error
Posted: Thu Apr 22, 2010 4:19 pm
by 4213832
Greetings
I am using TChart Pro 5.02 in BCB5
Something has happened with my project but I don't know what.
Calling either TeeChart() or TChartPreviewer::Exceute() generates the
following error
---------------------------
A Win32 API function failed.
---------------------------
It was working fine for a very long time and now these errors. Otherwise the
normal charting functions work fine.
Any clues ??
regards
david
Re: TeeExport and Win32 API error
Posted: Fri Apr 23, 2010 7:34 am
by yeray
Hi David,
I think it may be the first time we hear about this error. In fact, I haven't found any entry in the forums talking about an error like this.
The only think I can think is to suggest you to try the latest TeeChart and see if the problem is still reproducible.
Re: TeeExport and Win32 API error
Posted: Sun Apr 25, 2010 5:19 am
by 4213832
OK so I have just downloaded the 8.06 evaluation for Builder 5 and installed it.
Now when I run Builder I get the following message. When the IDE finally comes up after clicking many timed none of the Version 8 TeeChart component palettes are available.
Cannot load package 'TEE8C5.' It contains unit 'Teeconst,';which is also contained in package 'TEE5C5'
Any ideas ??
Thanks in advance.
Re: TeeExport and Win32 API error
Posted: Mon Apr 26, 2010 7:53 am
by yeray
Hi Snoopy,
Can you please read
this thread? Same problem and solution to this issue is discussed there.
Thanks in advance.
Re: TeeExport and Win32 API error
Posted: Tue Apr 27, 2010 3:33 pm
by 4213832
Yes I managed to get version 8.06 going with BCB5.
You need to rebuild any components such as TMS that uses the TeeChart packages. For example when you want to rebuild the TMS components you need to delete the Tee5C5.bpi from the requires list and replace it with Tee8C5.bpi which is located in the Steema directory. Also you need to change/add the include directory to point to the Steema include directory. Then you can rebuild the package. Once all components that reference TeeChart packages have been updated and rebuilt then it lets you enable the TeeChart Pro 8 palettes.
However after recompiling my project with the version 8 of TChart I am still having the same problem as before with Win32 API errors so I am back to square one again
What TeeChart packages are used for TeeExport and PrintPreview ??
Re: TeeExport and Win32 API error
Posted: Fri Apr 30, 2010 1:52 pm
by narcis
Hi Snoopy,
For print preview you should add TeePrevi unit to your project, for exporting TeExport. You'll find examples of both features in the new features demo available at TeeChart's program group.
Hope this helps!