Quantcast
Channel: CodeGuru Forums - Visual C++ Programming
Viewing all articles
Browse latest Browse all 3029

problem with Resource V1.1

$
0
0
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

Viewing all articles
Browse latest Browse all 3029

Latest Images

Trending Articles



Latest Images