B
Bonj
when creating a resource-only dll, the only way I can get it to compile and
work correctly, is to make it a non-resource-only dll.
surely this can't be the way...?
basically, there is a load of resources, in a dll. The DLL is a managed
class library, but it has got an unmanaged function that accesses the
resources. FindResource only works on the HMODULE that is gained by casting
the HINSTANCE passed to DllMain into an HMODULE (I think they're the same
thing anyway.)
There is also a manged class to be accessed from a C# application, this bit
works fine. But it is just the /NOENTRY option that is baffling me.
The return value of GetModuleHandle, doesn't work - as in, it can't find the
resources with this handle.
Apart from the DLL resources, the only things in the DLL are some C code
just to access the resources, and the managed class.
How can I make it a resource-only managed DLL with C code in it, if
compiling it with /NOENTRY means that DllMain doens't get called? (which it
doesn't.)
work correctly, is to make it a non-resource-only dll.
surely this can't be the way...?
basically, there is a load of resources, in a dll. The DLL is a managed
class library, but it has got an unmanaged function that accesses the
resources. FindResource only works on the HMODULE that is gained by casting
the HINSTANCE passed to DllMain into an HMODULE (I think they're the same
thing anyway.)
There is also a manged class to be accessed from a C# application, this bit
works fine. But it is just the /NOENTRY option that is baffling me.
The return value of GetModuleHandle, doesn't work - as in, it can't find the
resources with this handle.
Apart from the DLL resources, the only things in the DLL are some C code
just to access the resources, and the managed class.
How can I make it a resource-only managed DLL with C code in it, if
compiling it with /NOENTRY means that DllMain doens't get called? (which it
doesn't.)