Board index » cppbuilder » TMetafile and TMetafileCanvas linker error
Dave Lane
![]() CBuilder Developer |
TMetafile and TMetafileCanvas linker error2004-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 |