Passing 'Application.Icon' to a DLL

Passing 'Application.Icon' to a DLL

Post by Lars Boegh Olse » Sun, 24 Oct 1999 04:00:00



I have wrote a DLL, for displaying an "About" dialog.
I can't find out have to pass the Application.Icon (from the main program)
to the DLL.
Can anybody help me ?

Thanks
Lars B.

 
 
 

Passing 'Application.Icon' to a DLL

Post by Jason Wallac » Sun, 24 Oct 1999 04:00:00


  Instead of passing it, why don't you have the dll extract it?

--

--
Jason Wallace
SL Software


--



Quote:> I have wrote a DLL, for displaying an "About" dialog.
> I can't find out have to pass the Application.Icon (from the main program)
> to the DLL.
> Can anybody help me ?

> Thanks
> Lars B.


 
 
 

1. Loading icons from dll's or ico's

Hi all,

If I have a reference to an icon stored like this:

"C:\My Documents\Icons\MyIconLibrary.dll,3"

or this:

"C:\My Documents\Icons\MyIcon.ico,0"

is there a common way to load it into a TIcon? Or do I have to mess around
parsing the string and determining whether I'm extracting an ICON resource
from a DLL?

TIA,
Mab

|~\  /~| /~~| |~|   The .sig wears a ring of polymorph! --More--
|  \/  |/ / |_| |__ The .login hits! The .cshrc bites!
|      ' /| |_| | / ____________________________________________

| |  |_/  \_| | /   http://members.dingoblue.net.au/~mabster
=\|===========|/================================================

2. BSP: leaves,nodes and stuff

3. Wanted: pre-compiled MESA DLL's for 3DFX (OPENGL32.DLL, GLU32.DLL, GLUT32.DLL)

4. Morphing Program > RMorph - HELP FIND IT

5. Microsoft OpenGL DLL's conflicting with manufacture's DLL on install

6. Direct3D8 (D3DXSphereBoundProbe) Question

7. Application's associated icon

8. Do you need a LOGO?

9. passing parameters to a gp 'program'

10. I'm looking for nice icon's for in my program's

11. POV for Windows 'edit32dll.dll' question

12. Newbie Q's: Source of profiles, and export/import *.dll's for PP5

13. ICONS - CREATING ICON.DLL or ICON.EXE FROM *.ICO