On 8/6/2010 5:35 AM, Rob Richardson wrote:
> Thank you for your reply.  I'll see what I can find from Process
> Explorer.
>
> In the meantime, can you tell me if there is a better way to do what I
> want to do?
>
> Thank you very much.
>
> RobR

You could also try saving the handle passed into DllMain() as a global 
variable and then pass it to GetModuleFileName() - thus skipping the 
GetModuleHandle() call altogether.

If neither approach works, you could always try the method used by 
Windows to locate a DLL to load it:

http://msdn.microsoft.com/en-us/library/ms682586%28VS.85%29.aspx

-- 
Thomas Hruska
CubicleSoft President

Barebones CMS is a high-performance, open source content management 
system for web developers operating in a team environment.

An open source CubicleSoft initiative.
Your choice of a MIT or LGPL license.

http://barebonescms.com/

Reply via email to