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?Code:TCanvas *workCanvas = new TCanvas; TImage *backgroundImage = new TImage(Form1); ... backgroundImage->Picture->LoadFromFile("Stars.bmp"); //Set up workCanvas HDC workdc = CreateCompatibleDC(Canvas->Handle); HBITMAP bmp = CreateCompatibleBitmap(Canvas->Handle, ClientWidth, ClientHeight); SelectObject(workdc, bmp); SelectPalette(workdc, backgroundImage->Picture->Bitmap->Palette, false); workCanvas->Handle = workdc;