One thing that has always bothered me, and I REALLLLLLYYYY need to get straight in my head is "What the heck exactly is a MODULE????" Is it the idea that each exe is a module, each dll is a module? each resource is a module?
and if it is, then what if a resource is in a dll or exe? are there 2 modules to look for???
the other part is if I do a FindResource to find a particular resource then most code uses ByVal 0 to indicate the "Module" that created the resource which is fine in most cases is fine, but how do I use it the way it was really intended?
In my particular case I use FindResource to find a dll or bitmap that I have in a resource file, and then LoadResource to load that particular dll into memory.
The problem being is that according to docs the "LockResource" has remarks about
So how the heck is it CORRECTLY done?????
and if it is, then what if a resource is in a dll or exe? are there 2 modules to look for???
the other part is if I do a FindResource to find a particular resource then most code uses ByVal 0 to indicate the "Module" that created the resource which is fine in most cases is fine, but how do I use it the way it was really intended?
In my particular case I use FindResource to find a dll or bitmap that I have in a resource file, and then LoadResource to load that particular dll into memory.
The problem being is that according to docs the "LockResource" has remarks about
Trying to lock a resource by using the handle returned by the FindResource or FindResourceEx function will not work. You will get back a value that is incorrect and points to random data.

Comment