POV-Ray : Newsgroups : povray.off-topic : Minor details Server Time
6 Nov 2024 02:22:07 EST (-0500)
  Minor details (Message 1 to 9 of 9)  
From: Invisible
Subject: Minor details
Date: 9 Sep 2008 06:37:57
Message: <48c65205$1@news.povray.org>
When I right-click on an executable file and select Properties, 
sometimes there's a Version tab that tells you various info about the 
program. And sometimes there isn't. Most particularly, when I try it 
with a program that *I* compiled, there's no tab. Any idea how to add 
one? (And while we're on the subject, how do you add an icon?)

-- 
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*


Post a reply to this message

From: Warp
Subject: Re: Minor details
Date: 9 Sep 2008 10:27:35
Message: <48c687d7@news.povray.org>
Invisible <voi### [at] devnull> wrote:
> (And while we're on the subject, how do you add an icon?)

  That depends a lot on the language and compiler you are using.

-- 
                                                          - Warp


Post a reply to this message

From: Invisible
Subject: Re: Minor details
Date: 9 Sep 2008 11:04:43
Message: <48c6908b$1@news.povray.org>
Warp wrote:
> Invisible <voi### [at] devnull> wrote:
>> (And while we're on the subject, how do you add an icon?)
> 
>   That depends a lot on the language and compiler you are using.

Well, Haskell compiled by GHC. But GHC actually uses GNU tools such as 
GCC, GAS and LD behind the scenes. (Yes, even on Windoze. They ship them 
with GHC.)

If it's just a case of linking a suitable blob of binary data into my 
program, it would be quite trivial to ask LD to do that. If it involves 
something more complex... I guess I'll just not bother with it. ;-)

-- 
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*


Post a reply to this message

From: Doctor John
Subject: Re: Minor details
Date: 9 Sep 2008 11:07:47
Message: <48c69143$1@news.povray.org>
Invisible wrote:
> Warp wrote:
>> Invisible <voi### [at] devnull> wrote:
>>> (And while we're on the subject, how do you add an icon?)
>>
>>   That depends a lot on the language and compiler you are using.
> 
> Well, Haskell compiled by GHC. 


How did I know Andrew was going to say that? :-)

John

-- 
"Eppur si muove" - Galileo Galilei


Post a reply to this message

From: Invisible
Subject: Re: Minor details
Date: 9 Sep 2008 11:14:59
Message: <48c692f3$1@news.povray.org>
>> Well, Haskell compiled by GHC. 
> 
> How did I know Andrew was going to say that? :-)

GEE, LET ME THINK...

-- 
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*


Post a reply to this message

From: Warp
Subject: Re: Minor details
Date: 9 Sep 2008 11:20:22
Message: <48c69436@news.povray.org>
Invisible <voi### [at] devnull> wrote:
> Well, Haskell compiled by GHC. But GHC actually uses GNU tools such as 
> GCC, GAS and LD behind the scenes. (Yes, even on Windoze. They ship them 
> with GHC.)

> If it's just a case of linking a suitable blob of binary data into my 
> program, it would be quite trivial to ask LD to do that. If it involves 
> something more complex... I guess I'll just not bother with it. ;-)

  I have no idea how you define an icon for a Windows application if
the compiler doesn't have direct support for it.

  With Visual Studio you simply import an .ico file as a resource, and
that's it. Nothing else is needed. I don't have the faintest idea about
how you do it with other compilers.

-- 
                                                          - Warp


Post a reply to this message

From: Invisible
Subject: Re: Minor details
Date: 9 Sep 2008 11:25:31
Message: <48c6956b@news.povray.org>
Warp wrote:

>   I have no idea how you define an icon for a Windows application if
> the compiler doesn't have direct support for it.
> 
>   With Visual Studio you simply import an .ico file as a resource, and
> that's it. Nothing else is needed. I don't have the faintest idea about
> how you do it with other compilers.

OK, fair enough.

According to MSDN, it looks like I might be able to do this using the 
command-line "resource compiler" tool, but we'll see...

-- 
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*


Post a reply to this message

From: Orchid XP v8
Subject: Re: Minor details
Date: 9 Sep 2008 14:36:46
Message: <48c6c23e$1@news.povray.org>
Invisible wrote:
> When I right-click on an executable file and select Properties, 
> sometimes there's a Version tab that tells you various info about the 
> program. And sometimes there isn't. Most particularly, when I try it 
> with a program that *I* compiled, there's no tab. Any idea how to add 
> one? (And while we're on the subject, how do you add an icon?)

Apparently icons, version info and so forth are called "Windows 
resources". Apparently the following program allows you to manipulate them:

http://www.wilsonc.demon.co.uk/d10resourceeditor.htm

With this, it's a 20 second job to add an icon or some version data to 
an arbitrary compiled binary program.

-- 
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*


Post a reply to this message

From: Invisible
Subject: Re: Minor details
Date: 11 Sep 2008 04:05:30
Message: <48c8d14a$1@news.povray.org>
Orchid XP v8 wrote:

> Apparently icons, version info and so forth are called "Windows 
> resources". Apparently the following program allows you to manipulate them:
> 
> http://www.wilsonc.demon.co.uk/d10resourceeditor.htm
> 
> With this, it's a 20 second job to add an icon or some version data to 
> an arbitrary compiled binary program.

Actually, adding version information just makes a blank version tab 
appear. And the program crashes a lot. But it *is* just about possible 
to add an icon.

Anybody know of a good pixel painter?

-- 
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.