Re: Import exeutable icon
- From: "Scherbina Vladimir" <vladimir.scherbina@xxxxxxxxxxxx>
- Date: Fri, 17 Feb 2006 13:27:37 +0200
Hello, kalish.
Yes, it's possible. To add icon to application you need to add ICON
resource. Shell by default reads first ICON resource (with the smaller ID)
and shows it. BegineUpdateResource, UpdateResource and EndUpdateResource is
what you need.
--
Vladimir
"kalish" <kalsih@xxxxxxx> wrote in message
news:Og8IvI7MGHA.2124@xxxxxxxxxxxxxxxxxxxxxxx
Following is quate on MSDN refernce regarding resources manipulation
(thanks
Mr.Sherbina). Following the doc I managed to import an exe to my VC
application, save it to the disk, and run it with ShellEcute.
My question - I want also to import its small icon that I see next to the
name in Explorer view. Is it possible and how?
Regards
Kalish
Following examples might help you:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/WinUI
/WindowsUserInterface/Resources/IntroductiontoResources/UsingResources.asp#_
win32_Updating_Resources
They don't have working with files, but basics of reading/using resources
are described there.
--
Vladimir
"Kalish" <kalish@xxxxxxxx> wrote in message
news:OSSbeLiKGHA.2036@xxxxxxxxxxxxxxxxxxxxxxx
Accidently its an installation program so one may asume that the user has
administrator previlages. Is there any C/C++ example that doing something
similar.
Thanks
kalsih
"Joseph M. Newcomer" <newcomer@xxxxxxxxxxxx> wrote in message
news:0snau1hab8lajs3pb007klfu4bndp3rnur@xxxxxxxxxx
As Ajay points out, in order to execute the resource you need to storeas a .exe file.
it
This may not be possible. In fact, many anti-virus programs areconfigured to forbid the
writing of executable files on the disk, and cannot be overridden byanyone other than an
administrator. So this seems like a bad idea. When you do an install,the person logged
in doing the installation has rights to do an installation, which meanswriting executable
files on the disk. After that, it is just pure hope.complex than a
All of this seems to go back to the "I don't want to have anything more
single executable to deliver", which is a pretty lame excuse, since thishasn't really
been a valid way of distributing software for over a decade.important
joe
On Sat, 4 Feb 2006 08:11:20 -0800, "Kalish" <kalish@xxxxxxx> wrote:
I have an exe which I want to "include" inside my mfc application as a
resource or whatever other way transparently to the user. The most
andthing is that the mfc application won't need in the run-time, to look
for
the other exe. It will run this exe before it will do some other things
this will be transparent to the user(I hope I explained my need goodJoseph M. Newcomer [MVP]
enough).
Is it possible and how?
Thanks in advance
Kalish
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
.
- References:
- Import exeutable icon
- From: kalish
- Import exeutable icon
- Prev by Date: Import exeutable icon
- Next by Date: Re: Using GET_CONFIGURATION_IOCTL_INPUT in a CD application.
- Previous by thread: Import exeutable icon
- Index(es):
Relevant Pages
|