From: Aegis Delacour on
thnx for the help
i fixed the errors but it just doesnt show up
for som reason
this is my new code

void CLowerEicasDlg::screeny()
{
HDC hdc = CreateDC("DISPLAY", NULL, NULL, NULL);
HDC hdcC = CreateCompatibleDC(hdc);

int dest_x, dest_y, width, height;
dest_x=0;
dest_y=0;
width=800;
height=900;

FIBITMAP *fibmp_img = FreeImage_Load(FIF_JPEG, "screen1.JPG",
JPEG_DEFAULT);
StretchDIBits(hdcC, dest_x, dest_y, width, height, 0, 0, width,
height, FreeImage_GetBits(fibmp_img), FreeImage_GetInfo(fibmp_img),
DIB_RGB_COLORS, SRCCOPY);
FreeImage_Unload(fibmp_img);

DeleteDC(hdc);
DeleteDC(hdcC);

}