Ok, I want to open a bitmap,
CString fileName;
fileName = "somefile.bmp";
CBitmap bmCrit;
bmCrit.LoadBitmap(fileName);
when i do above i get an illegal operation when program runs. please tell me where i am going wrong? and i set the file name from the file dialogue(even if i don't i get the same error).