473,396 Members | 1,827 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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 2429
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
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...
0
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.