Hey, I've been messing with bitmaps for a day or so now, and it gets very montonous to add bitmap names to the resource file. I was wondering if theres some way to copy the bitmap contents to a constant string, then load it? That way theres no need for resources or external files.
(oddly enough this doesnt work:
Theres more code to it, but it shouldent turn out as null, but it always does?)Code:const char TESTBITMAP1 = "*Bitmap information*" ScreenDisplay_Object = (HBITMAP)LoadImage(GetModuleHandle(NULL), TESTBITMAP1, IMAGE_BITMAP, 0, 0, LR_DEFAULTCOLOR); if(ScreenDisplay_Object == NULL) MessageBox(hwnd, "Could not load object!", "Error", MB_OK | MB_ICONEXCLAMATION);