BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

ChartFx

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (ActiveX)
View previous topic :: View next topic  
Author Message
Staffan Nilsson
Guest





PostPosted: Wed Apr 11, 2007 9:19 pm    Post subject: ChartFx Reply with quote



We have developed an application using C++ Builder 5. In that application we use the version of ChartFx that came with C++ Builder.

We are now upgrading to C++ Builder 2006. ChartFx is no longer included, and I also do not understand if/how I can use the ChartFx version from C++ Builder 5. I can compile, but get a lot of linker errors, all complaining about unresolved externals (in ChartFx) like:
[Linker Error] Error: Unresolved external '__fastcall Chartfx3::TChartfx::PrintIt()' referenced from D:\SN1051_REMOTE2\CC_ECC\TOOLS\HALDEXCALIBRATIONTOOL\CODE\SECCMONITOR\DEBUG_BUILD\SECCTABLEINPUTFORM.OBJ

I am a beginner in this area, but please give me a hint what I need to do to be able to use the ChartFx with the new version of C++ Builder.
Thanks!
Back to top
Craig Farrell
Guest





PostPosted: Wed Apr 11, 2007 11:35 pm    Post subject: Re: ChartFx Reply with quote



Hi,

Quote:
do to be able to use the ChartFx with the new version of C++ Builder.

BCB5 came with a package installed into the IDE
that contained an import of the OCX. In BDS,
you will need to create and install a package
with a new import of the OCX. To do that:
1) Create a new C++ package
2) Component | Import Component | Import ActiveX,
click Next
3) Select CFX32.OCX from the list, description:
"ChartFX 2.0 OLE Custom Control", click Next
4) Make sure Palette page is "ActiveX" and
generate component wrappers is ON, click Next
5) Select the "Add unit to Package" option,click Finish
6) In the Project Manager, right-click on the package's
..bpl node and select "Install".
You should see a sucess message with the name of the
component. If not, set the Envrionment Options
for C++ Type Library to ignore flags when importing
and re-import.
Your old code might have things like #pragma links
that will not be affected by "Build All" so make sure
you are not picking up old versions of obj's or lib's.
e.g. your project might have paths to old directories.
Try a new project that uses the new OCX import if you
are still having strange errors after the re-import.

--Craig
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (ActiveX) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.