Board index » cppbuilder » TMetafile and TMetafileCanvas linker error

TMetafile and TMetafileCanvas linker error


2004-01-29 10:46:42 AM
cppbuilder63
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 FILES\BORLAND\CBUILDER5\LIB\RELEASE\VCLE50.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
 
 

Re:TMetafile and TMetafileCanvas linker error

Hi Dave,
Have you installed the patch for BCB5? IIRC, this issue was fixed in
the patch (see
info.borland.com/devsupport/bcppbuilder/patches/). If
you've already installed tha patch and you're still getting the error,
see this post...
www.deja.com/threadmsg_ct.xp
Good luck,
Damon (TeamB)
Lane wrote:
Quote
[Linker Error] Unresolved external '__fastcall Graphics::TMetafileCanvas::TMetafileCanvas(Graphics::TMetafile *,
int)' referenced from D:\PROGRAM FILES\BORLAND\CBUILDER5\LIB\
RELEASE\VCLE50.LIB|_t_Graph
 

Re:TMetafile and TMetafileCanvas linker error

Thanks Damon,
That worked like a champ.
Dave
"Damon Chandler (TeamB)" < XXXX@XXXXX.COM >wrote:
Quote
Hi Dave,
Have you installed the patch for BCB5? IIRC, this issue was fixed in
the patch (see
info.borland.com/devsupport/bcppbuilder/patches/). If
you've already installed tha patch and you're still getting the error,
see this post...

www.deja.com/threadmsg_ct.xp

Good luck,
Damon (TeamB)


Lane wrote:
>[Linker Error] Unresolved external '__fastcall Graphics::TMetafileCanvas::TMetafileCanvas(Graphics::TMetafile *,
>int)' referenced from D:\PROGRAM FILES\BORLAND\CBUILDER5\LIB\
>RELEASE\VCLE50.LIB|_t_Graph
 

{smallsort}