Really ambiguous linker error
I"m using Borland Builder 6. when I compile i get this:
[Linker Fatal Error] Fatal: Expected a file name:
I'm just reusing some of my old code, so it can't be that, and the only new thing i'm using is a new TCanvas.
This and a new TRect object are all thats new. Can anyone see anything thats funny or odd with this code?
TCanvas *workCanvas = new TCanvas;
TImage *backgroundImage = new TImage(Form1);
//Set up workCanvas
HDC workdc = CreateCompatibleDC(Canvas->Handle);
HBITMAP bmp = CreateCompatibleBitmap(Canvas->Handle, ClientWidth, ClientHeight);
SelectPalette(workdc, backgroundImage->Picture->Bitmap->Palette, false);
workCanvas->Handle = workdc;