How to loadImage from resource  
Author Message
MarkRendle





PostPosted: Top

Visual Studio C++ >> How to loadImage from resource I tried to do it like this, but this is wrong.

HBITMAP hBmp = (HBITMAP)::LoadImage(
NULL,
szFilename,
MAKEINTRESOURCE(IDB_BITMAP1), \\<-here doesn't
works
0,
0,
LR_LOADFROMFILE|LR_CREATEDIBSECTION
);

Visual Studio77