Well now it's loading the image after some work, but I still can't see my card. Below is my source code, anything wrong with it?
HINSTANCE cards = LoadLibrary("lcards.dll");
if (cards)
{
//HBITMAP image = LoadBitmap(cards, MAKEINTRESOURCE(_1r2));
HBITMAP image = LoadBitmap(cards, LPCSTR("_1r2"));
if (image)
{
BITMAP bmp;
::GetObject(image, sizeof(BITMAP), &bmp);
int size = bmp.bmHeight*bmp.bmWidth*bmp.bmBitsPixel/8;
BYTE *lpBits = new BYTE[size];
::GetBitmapBits(image, size, lpBits);
dbMakeMemblock(1, size+12);
for (int i = 0; i < size; i++)
dbWriteMemblockByte(1, i+12, lpBits[i]);
dbWriteMemblockDWORD(1, 0, bmp.bmWidth);
dbWriteMemblockDWORD(1, 4, bmp.bmHeight);
dbWriteMemblockDWORD(1, 8, bmp.bmBitsPixel);
delete []lpBits;
dbMakeMemblockFromImage(1, 2);
dbPasteImage(2,0,0);
dbSaveImage("newImage.bmp", 2);
dbPrint("All done.");
} else dbPrint("Could not load image");
FreeLibrary(cards);
} else dbPrint("Could not load DLL");
Windows XP Home Ed. SP/2 ---> GeForce FX 5500 - 256MB
160 GB HD ---> 1 Gig RAM