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 

TMetafile and TMetafileCanvas linker error

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Usage)
View previous topic :: View next topic  
Author Message
Dave Lane
Guest





PostPosted: Thu Jan 29, 2004 2:46 am    Post subject: TMetafile and TMetafileCanvas linker error Reply with quote




Hi,

I want to create an Enhanced Metafile (.emf) using TMetafile and TMetaFileCanvas. The Several sources I checked, including the BCB5 help files, show how to associate the TMeatafileCanvas with the TMetafile and draw the text, lines and some graphs to it. When the canvas object is destroyed, the drawing is transferred to the TMetafile instance which can be saved to a file. My problem is that I get a linker error when I try to compile the program.
Here is the error I get:

[Linker Error] Unresolved external '__fastcall Graphics::TMetafileCanvas::TMetafileCanvas(Graphics::TMetafile *, int)' referenced from D:PROGRAM FILESBORLANDCBUILDER5LIBRELEASEVCLE50.LIB|_t_Graph

I have tried this code with three separate installations of BCB5 (on three different machines), with identical results. Can anyone help me?

Thanks
Dave
Back to top
Damon Chandler (TeamB)
Guest





PostPosted: Fri Jan 30, 2004 8:57 am    Post subject: Re: TMetafile and TMetafileCanvas linker error Reply with quote



Hi Dave,
Have you installed the patch for BCB5? IIRC, this issue was fixed in
the patch (see
[url]http://info.borland.com/devsupport/bcppbuilder/patches/#cbuilder5)[/url]. If
you've already installed tha patch and you're still getting the error,
see this post...

http://www.deja.com/threadmsg_ct.xp?AN=604011061

Good luck,
Damon (TeamB)


Lane wrote:
Quote:
[Linker Error] Unresolved external '__fastcall Graphics::TMetafileCanvas::TMetafileCanvas(Graphics::TMetafile *,
int)' referenced from D:PROGRAM FILESBORLANDCBUILDER5LIB
RELEASEVCLE50.LIB|_t_Graph

Back to top
Dave Lane
Guest





PostPosted: Sat Jan 31, 2004 3:25 am    Post subject: Re: TMetafile and TMetafileCanvas linker error Reply with quote



Thanks Damon,
That worked like a champ.
Dave

"Damon Chandler (TeamB)" <dmc27 (AT) cornell (DOT) edu> wrote:
Quote:
Hi Dave,
Have you installed the patch for BCB5? IIRC, this issue was fixed in
the patch (see
[url]http://info.borland.com/devsupport/bcppbuilder/patches/#cbuilder5)[/url]. If
you've already installed tha patch and you're still getting the error,
see this post...

http://www.deja.com/threadmsg_ct.xp?AN=604011061

Good luck,
Damon (TeamB)


Lane wrote:
[Linker Error] Unresolved external '__fastcall Graphics::TMetafileCanvas::TMetafileCanvas(Graphics::TMetafile *,
int)' referenced from D:PROGRAM FILESBORLANDCBUILDER5LIB
RELEASEVCLE50.LIB|_t_Graph


Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Usage) 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.