Hi,

Here is a part of a test application I made under Windows with Visual
Studio:

------------
 myModule=LoadLibrary("shell32.dll");
 if ( myModule==NULL)  return;

myHRSRC = FindResource(  myModule,   (const char*)1,   RT_ACCELERATOR );

 if (myHRSRC==NULL)  MessageBox("Accelerator resource NOT found");
 else  MessageBox("Accelerator resource found");
-------------

On windows the resource is found. On wine, it is not, but the module is
loaded.
In pe_resource.c :
PE_FindResourceExW returns NULL when it reachs this line of code:
if ((resdirptr = GetResDirEntryW(resdirptr, type, root, FALSE)) == NULL)
    return 0;

Do you know what could be the cause of such behaviour?

Your ideas are welcome!

I'll continue my investigation...

Thanks

Francois Methot
Macadamian Technologies Inc.









Reply via email to