Home »
Public Forums »
archive »
Re: Another Windows Question Related to IDL
Re: Another Windows Question Related to IDL [message #33322] |
Thu, 19 December 2002 09:25 |
Rick Towler
Messages: 821 Registered: August 1998
|
Senior Member |
|
|
"Karsten Rodenacker" <Karsten@Rodenacker.de> wrote
> Hello,
> I try to build an 'external' dll with callable IDL parts. Under Windows
> I need for initialization the HINSTANCE of the calling application. Does
> anybody know how to get that inside the 'external' dll? The application
> program is nicely protected and dongeled and calls the planned
> external dll with a special extdll mechanism.
Try AfxGetInstanceHandle(). It returns an HINSTANCE to the current instance
of the application (your .exe file). I haven't done this so I don't know
what you'll run into (I have done window handles, but not instance handles.)
In your case I would assume that would return an HINSTANCE to the calling
instance of idlde.exe which I think is what you are looking for.
-Rick
|
|
|
Current Time: Wed Oct 08 19:56:06 PDT 2025
Total time taken to generate the page: 0.00565 seconds