🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.nativeapi
1 messages
1 total messages Started by Stefan Meyer Thu, 15 May 2008 16:51
How to change default icon for file associations?
#267
Author: Stefan Meyer
Date: Thu, 15 May 2008 16:51
28 lines
1896 bytes
Hi,

I'm using BCB 4. My application uses a special file extension
and with the help of an appropriate registry entry, I can open these
file
directly via the explorer.

These files are displayed in the explorer with the default icon of my
application:
Reg->WriteString("", Application->ExeName + ",0");

Everything works fine.

Now I want to "invent" another file extension with another icon. With
the line above, just the default icon is used (resp. the first icon
found in
the exe file).

If I want to use something like
Reg->WriteString("", Application->ExeName + ",1");
how can I add another icon to my application and make sure that
it is always this icon that is associated with my second file
extension?


Thank you

Stefan
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads