473,472 Members | 1,747 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Icons for File Type associations

I want to use embedded icon resources for my file type associations, but
only the app.ico seems to show up when I go to choose the icons in the
setup File Types editor.

The same thing when I try to use Windows Explorer to view embedded icons in
my compiled EXE.

Does anyone know how to compile such that the icons will show up as
standard resources? Or how to add the icons to the executable after
compilation without breaking anything?
Jul 21 '05 #1
5 2437
You can still add standard resource files but you have to Manually compile
the project with the /Win32Resource switch. I've not done it, but I remember
seeing it somewhere in the help files.

"Eric" <ef******@massie-labs.com> wrote in message
news:Xn********************************@206.127.4. 12...
I want to use embedded icon resources for my file type associations, but
only the app.ico seems to show up when I go to choose the icons in the
setup File Types editor.

The same thing when I try to use Windows Explorer to view embedded icons in my compiled EXE.

Does anyone know how to compile such that the icons will show up as
standard resources? Or how to add the icons to the executable after
compilation without breaking anything?

Jul 21 '05 #2
"Mick Doherty"
<EX***********@AND.REMOVE.SQUAREBRACKETS.[mdaudi100#ntlworld.com]> wrote
in news:#Q*************@TK2MSFTNGP10.phx.gbl:
eww. Yeah it's there. But you have to use command line compilation.
Anyone have a better idea?
You can still add standard resource files but you have to Manually
compile the project with the /Win32Resource switch. I've not done it,
but I remember seeing it somewhere in the help files.

"Eric" <ef******@massie-labs.com> wrote in message
news:Xn********************************@206.127.4. 12...
I want to use embedded icon resources for my file type associations,
but only the app.ico seems to show up when I go to choose the icons
in the setup File Types editor.

The same thing when I try to use Windows Explorer to view embedded
icons

in
my compiled EXE.

Does anyone know how to compile such that the icons will show up as
standard resources? Or how to add the icons to the executable after
compilation without breaking anything?



Jul 21 '05 #3
Well, so get this, I created a seperate DLL that just has 3 icons in it.
Windows explorer can see the icons in the file when I try to change Icons
from a shortcut properties box.

But when I put the DLL file into VS.NET and add it to my setup project, it
dosn't see ANY of the icons when I choose the DLL file. What's going on?
Jul 21 '05 #4
You could always use the UpdateResource API(with associated api's) to add a
standard windows Icon Resource to the compiled Executable.

"Eric" <ef******@massie-labs.com> wrote in message
news:Xn********************************@206.127.4. 12...
"Mick Doherty"
<EX***********@AND.REMOVE.SQUAREBRACKETS.[mdaudi100#ntlworld.com]> wrote
in news:#Q*************@TK2MSFTNGP10.phx.gbl:
eww. Yeah it's there. But you have to use command line compilation.
Anyone have a better idea?
You can still add standard resource files but you have to Manually
compile the project with the /Win32Resource switch. I've not done it,
but I remember seeing it somewhere in the help files.

"Eric" <ef******@massie-labs.com> wrote in message
news:Xn********************************@206.127.4. 12...
I want to use embedded icon resources for my file type associations,
but only the app.ico seems to show up when I go to choose the icons
in the setup File Types editor.

The same thing when I try to use Windows Explorer to view embedded
icons

in
my compiled EXE.

Does anyone know how to compile such that the icons will show up as
standard resources? Or how to add the icons to the executable after
compilation without breaking anything?


Jul 21 '05 #5
Check this out, I created a seperate DLL that just has 3 icons in it.
Windows explorer can see the icons in the file when I try to change Icons
from a shortcut properties box.

But when I put the DLL file into VS.NET and add it to my setup project, it
dosn't see ANY of the icons when I choose the DLL file. What's going on?

Jul 21 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: john | last post by:
I have an exe console app that i wrote, which works on custom data files. I'd like to give these data files a custom extension and somehow register that file extension with my exe, so all i have to...
8
by: Shane Story | last post by:
I would like to embed mutiple icons inside my main exe file so that they can be viewed like Shell32.dll or whatever. Can't figure out how to do this. Sorry if this is in the wrong group. ...
10
by: - HAL9000 | last post by:
I am deploying my solution using the Setup Project template to generate a windows installer (msi file). 1) The "Primary output" option in the wizard has generated a dozen or so ..dll files that...
5
by: Eric | last post by:
I want to use embedded icon resources for my file type associations, but only the app.ico seems to show up when I go to choose the icons in the setup File Types editor. The same thing when I try...
1
by: iwdu15 | last post by:
hi, how can i get the icon associated with a certain file type? thanks -- -iwdu15
28
by: Tim Daneliuk | last post by:
I have a program wherein I want one behavior when a file is set as executable and a different behavior if it is not. Is there a simple way to determine whether a given named file is executable...
6
by: Jerad Rose | last post by:
I recently installed Visual Studio 2003, after having already installed VS 2005. Unfortunately, it took over all of the file associations. There is an option in Visual Studio 2005 to restore...
3
by: cal | last post by:
Hi group, Wich one is the class to handle desktop icons? I want to modify for example the file path the Icon points to. of course, its the path of the file u open when u doubleclick the icon. ...
2
Nepomuk
by: Nepomuk | last post by:
Recently, I found that I had associated a file type to notepad by mistake. This file type (let's just say, it has the extension .xyz) wasn't supposed to be opened by notepad - actually, it wasn't...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.