Loadresource problem?

In Find resource API.
FindResource(..) API the Second parameter i don't understand.
I am trying to extract using FindResource and others API.

here is the sample code:


hRes = FindResource(hExe, MAKEINTRESOURCE(IDD_HAND_ABOUTBOX), RT_DIALOG);

Where can i find ID of text in want to extract ?
I am using VS.

How can i get resource name and Id ?


What's wrong in my code ?

Code:
LPCWSTR FilePath = L"C:\\MyApp";
LPCWSTR ResourseApp = L"ASM.PNG";

mod = LoadLibrary(FilePath);
if (mod == NULL) {
std::cout << "[*] Error in LoadLibrary!" << std::endl;
std::cout << " " << GetLastError() << std::endl;
}

FindSrc = FindResource(mod,ResourseApp,NULL);

if (FindSrc == NULL) {
std::cout << "Error In FindREsource ! " << " " << GetLastError() << std::endl;
}
http://pastebin.com/rhU3QDSS

Help is always Appreciated!
Thanks
Last edited on
Where can i find ID of text in want to extract ?

One way is to use a resource editor. It will show you all types and their id in a dll or exe file.
A good free one is ResEdit. http://www.resedit.net/
http://i.imgur.com/mRCMabM.png

in the following image which one is ID ?

And what is this example for ?

"(IDD_HAND_ABOUTBOX), RT_DIALOG) "
in the following image which one is ID ?

101 is the ID for PNG

And what is this example for ?
"(IDD_HAND_ABOUTBOX), RT_DIALOG) "

Looks like IDD_HAND_ABOUTBOX is an ID for a dialog.
if 101 is the ID for PNG
#1. then what is then ID for txt ? Can i get the table of specification ?

#2. USAGE : MAKEINTRESOURCE ( 101 ) ???
Topic archived. No new replies allowed.