comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Another Windows Question Related to IDL
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Another Windows Question Related to IDL [message #33322] Thu, 19 December 2002 09:25
Rick Towler is currently offline  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
[Message index]
 
Read Message
Previous Topic: Using trackball to rotate an image
Next Topic: dead lock (dyld operation attempted in a thread already doing a dyld operation)

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 19:42:51 PDT 2025

Total time taken to generate the page: 0.00442 seconds