🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #267

How to change default icon for file associations?

#267
From: 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
Technical Details
Message-ID: <656b2fb5-1a1a-4cf8-840c-0e02d34f2822@c65g2000hsa.googlegroups.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!c65g2000hsa.googlegroups.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,2ec33c658a90cf8e,start
X-Google-Attributes: gid10cc67,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!c65g2000hsa.googlegroups.com!not-for-mail
From: Stefan Meyer <thaleskreis@gmail.com>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: How to change default icon for file associations?
Date: Thu, 15 May 2008 09:51:54 -0700 (PDT)
Organization: http://groups.google.com
Lines: 28
Message-ID: <656b2fb5-1a1a-4cf8-840c-0e02d34f2822@c65g2000hsa.googlegroups.com>
NNTP-Posting-Host: 91.10.75.102
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Trace: posting.google.com 1210870314 2997 127.0.0.1 (15 May 2008 16:51:54 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Thu, 15 May 2008 16:51:54 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: c65g2000hsa.googlegroups.com; posting-host=91.10.75.102; 
 posting-account=uI_FfAoAAAD1HcM-XjGDOH10Cxs61BhJ
User-Agent: G2/1.0
X-HTTP-UserAgent: Opera/9.27 (Windows NT 5.1; U; de),gzip(gfe),gzip(gfe)