Click here to Skip to main content
15,898,371 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionEasy way to get any urls sourse code? Pin
Gofur Halmurat24-Mar-08 23:11
Gofur Halmurat24-Mar-08 23:11 
AnswerRe: Easy way to get any urls sourse code? Pin
David Crow25-Mar-08 3:40
David Crow25-Mar-08 3:40 
AnswerRe: Easy way to get any urls sourse code? Pin
Gofur Halmurat26-Mar-08 5:58
Gofur Halmurat26-Mar-08 5:58 
QuestionHooking Pin
somasundarambe24-Mar-08 23:06
somasundarambe24-Mar-08 23:06 
QuestionRe: Hooking Pin
David Crow25-Mar-08 3:47
David Crow25-Mar-08 3:47 
GeneralAPI for getting resource Handle Pin
neha.agarwal2724-Mar-08 20:59
neha.agarwal2724-Mar-08 20:59 
GeneralRe: API for getting resource Handle Pin
Rajkumar R24-Mar-08 21:19
Rajkumar R24-Mar-08 21:19 
GeneralRe: API for getting resource Handle Pin
Randor 25-Mar-08 4:50
professional Randor 25-Mar-08 4:50 
Hello there,

I believe that AfxGetResourceHandle() is simply returning the allocation base of the module which contains the resource your attempting to access. This is so it can correctly calculate PE image offsets. Therefore you should be able to simply do the following:

If the resource is located inside the module your executing code from you can do this:

#define MyGetResourceHandle ((HINSTANCE)&__ImageBase)
HICON hIco1 = (HICON) LoadImage(MyGetResourceHandle,MAKEINTRESOURCE(IDI_ICON1),IMAGE_ICON,16,16,0);


Best Wishes,

-David Delaune
QuestionHow to serialize a Gdiplus::Bitmap object? Pin
followait24-Mar-08 20:54
followait24-Mar-08 20:54 
AnswerRe: How to serialize a Gdiplus::Bitmap object? Pin
Rajkumar R25-Mar-08 2:36
Rajkumar R25-Mar-08 2:36 
GeneralRe: How to serialize a Gdiplus::Bitmap object? Pin
followait25-Mar-08 4:48
followait25-Mar-08 4:48 
QuestionABOUT CONCATINATION Pin
savitri24-Mar-08 20:37
savitri24-Mar-08 20:37 
QuestionRe: ABOUT CONCATINATION [modified] Pin
Rajkumar R24-Mar-08 20:52
Rajkumar R24-Mar-08 20:52 
GeneralRe: ABOUT CONCATINATION Pin
Peter Weyzen25-Mar-08 19:48
Peter Weyzen25-Mar-08 19:48 
Question'ImageList_AddIcon': identifier not found Pin
hitonly200824-Mar-08 19:30
hitonly200824-Mar-08 19:30 
GeneralRe: 'ImageList_AddIcon': identifier not found Pin
Rajkumar R24-Mar-08 20:37
Rajkumar R24-Mar-08 20:37 
GeneralRe: 'ImageList_AddIcon': identifier not found Pin
hitonly200824-Mar-08 22:40
hitonly200824-Mar-08 22:40 
GeneralRe: 'ImageList_AddIcon': identifier not found Pin
Rajkumar R25-Mar-08 0:09
Rajkumar R25-Mar-08 0:09 
Questionhelp about this stack overflow? Pin
wendyyue24-Mar-08 19:29
wendyyue24-Mar-08 19:29 
AnswerRe: help about this stack overflow? Pin
Rajkumar R24-Mar-08 20:29
Rajkumar R24-Mar-08 20:29 
GeneralDocking Windows Pin
suhi24-Mar-08 19:12
suhi24-Mar-08 19:12 
GeneralRe: Docking Windows Pin
Rajasekharan Vengalil24-Mar-08 19:37
Rajasekharan Vengalil24-Mar-08 19:37 
Generalunicode characterset Vs mutibyte Character set Pin
rowdy_vc++24-Mar-08 18:35
rowdy_vc++24-Mar-08 18:35 
GeneralRe: unicode characterset Vs mutibyte Character set Pin
Rajasekharan Vengalil24-Mar-08 19:35
Rajasekharan Vengalil24-Mar-08 19:35 
GeneralRe: unicode characterset Vs mutibyte Character set Pin
Mark Salsbery25-Mar-08 5:58
Mark Salsbery25-Mar-08 5:58 

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.