Click here to Skip to main content
15,887,485 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralFinding/Loading resources Pin
will13836-May-03 3:37
will13836-May-03 3:37 
GeneralRe: Finding/Loading resources Pin
David Crow6-May-03 4:06
David Crow6-May-03 4:06 
GeneralRe: Finding/Loading resources Pin
will13836-May-03 4:34
will13836-May-03 4:34 
GeneralRe: Finding/Loading resources Pin
David Crow6-May-03 4:39
David Crow6-May-03 4:39 
GeneralRe: Finding/Loading resources Pin
will13836-May-03 4:44
will13836-May-03 4:44 
GeneralRe: Finding/Loading resources Pin
basementman6-May-03 4:50
basementman6-May-03 4:50 
GeneralRe: Finding/Loading resources Pin
will13836-May-03 5:16
will13836-May-03 5:16 
GeneralRe: Finding/Loading resources Pin
basementman6-May-03 5:24
basementman6-May-03 5:24 
You need to wrap the IDI_ICON3 with MakeIntResource as shown in the snippet below:

HRSRC hRscDLL = FindResource(NULL,MAKEINTRESOURCE(IDI_ICON3),RT_ICON);
if (hRscDLL)
{
DWORD dwIconSize = SizeofResource(NULL,hRscDLL);

HGLOBAL hMem = LoadResource(NULL,hRscDLL);
if (hMem)
{
LPVOID pIconBytes = LockResource(hMem);
if (pIconBytes)
{
.........

GeneralRe: Finding/Loading resources Pin
will13836-May-03 5:36
will13836-May-03 5:36 
GeneralRe: Finding/Loading resources Pin
David Crow6-May-03 6:02
David Crow6-May-03 6:02 
GeneralRe: Finding/Loading resources Pin
will13836-May-03 6:47
will13836-May-03 6:47 
GeneralRe: Finding/Loading resources Pin
will13836-May-03 7:21
will13836-May-03 7:21 
GeneralProblem regerding LineTo(..) Pin
summo6-May-03 3:21
summo6-May-03 3:21 
GeneralRe: Problem regerding LineTo(..) Pin
JensB6-May-03 4:42
JensB6-May-03 4:42 
GeneralRe: Problem regerding LineTo(..) Pin
John R. Shaw6-May-03 7:07
John R. Shaw6-May-03 7:07 
GeneralCFile %&% Pin
macmac386-May-03 2:50
macmac386-May-03 2:50 
GeneralRe: CFile %&% Pin
Mike Zinni6-May-03 3:15
Mike Zinni6-May-03 3:15 
GeneralRe: CFile %&% Pin
macmac386-May-03 3:24
macmac386-May-03 3:24 
GeneralRe: CFile %&% Pin
macmac386-May-03 3:54
macmac386-May-03 3:54 
GeneralRe: CFile %&% Pin
Mike Zinni6-May-03 4:10
Mike Zinni6-May-03 4:10 
GeneralRe: CFile %&% Pin
macmac386-May-03 4:45
macmac386-May-03 4:45 
GeneralRe: CFile %&% Pin
David Crow6-May-03 4:49
David Crow6-May-03 4:49 
GeneralRe: CFile %&% Pin
macmac387-May-03 3:56
macmac387-May-03 3:56 
GeneralRe: CFile %&% Pin
David Crow6-May-03 4:20
David Crow6-May-03 4:20 
GeneralRe: CFile %&% Pin
Hans Ruck6-May-03 3:18
Hans Ruck6-May-03 3:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.