Original Post
I started using Visual Studio.net and just trying to get a Bitmap loaded from my resources. Anyhow here's the code I used to load the bitmap.... HBITMAP Base_Bitmap_HANDLE; Base_Bitmap_HANDLE = LoadBitmap(Main_Window, TEXT("IDB_BITMAP1")); error = GetLastError(); sprintf(buf, "GetLastError returned %u\n",error); MessageBox(NULL, buf, "Error", MB_OK); The Messagebox says that GetLastError reports an error 1814, "The specified resource name cannot be found in the image file. " I added the bitmap as a resource, I just don't understand why it's not seeing the bitmap resource that I inserted. Any ideas?? Thanks a bunch!!