Theo's Forum

IT-Berater: Theo Gottwald (IT-Consultant) => General Tips and Discussion => Topic started by: Theo Gottwald on April 23, 2009, 12:51:35 PM

Title: Vista-Icons and the Powerbasic Resource Compiler
Post by: Theo Gottwald on April 23, 2009, 12:51:35 PM
The Topic is this:

New Icons for Vista (http://www.rw-designer.com/compile-vista-icon)

Windows Vista icons contain a high resolution 256x256 pixels images. These images are used exclusively by Vista and they are stored using PNG-based compression. Explorer dynamically resamples them to required resolution.

Our resource compiler refuses to accept them and aborts with:
"error RC2176 : old DIB in VistaIcon.ico; pass it through SDKPAINT".

Now there is a new resource compiler available but to get hands on it you need the SDK.

This: http://www.microsoft.com/downloads/details.aspx?FamilyID=53f9cbb4-b4af-4cf2-bfe5-260cfb90f7c3&DisplayLang=en

Where can we get the new resource compiler, to be able to compile resource files compatible with actual Vista or WIndows 7 ?

More about Vista Icons ... (http://blog.gamecraft.org/2007/02/vista-program-icons)
Title: Re: Vista-Icons and the Powerbasic Resource Compiler
Post by: Eros Olmi on April 03, 2011, 07:36:11 PM
Hi all. I know this is an old post but its content is quite actual I think.
How we can use Windows 7 application icons in PB programs?

Even in PB10 I get Theo same error.

Thanks a lot
Eros

PS: attached the icon I would like to add in my editor
Title: Re: Vista-Icons and the Powerbasic Resource Compiler
Post by: Edwin Knoppert on April 03, 2011, 08:31:35 PM
If you are not using a PBR you can use:
#Resource Icon, 100, "d:\App004.ico"
It instantly showed as my icon in my forms (PwrDev feature) so it's normally embedded.
Title: Re: Vista-Icons and the Powerbasic Resource Compiler
Post by: José Roca on April 03, 2011, 08:51:15 PM
The new resource compiler is available at:
http://support.microsoft.com/kb/949408/en-us

And Patrice posted an ever newer version in reply #6 of this thread:
http://www.jose.it-berater.org/smfforum/index.php?topic=3429.0
Title: Re: Vista-Icons and the Powerbasic Resource Compiler
Post by: Eros Olmi on April 03, 2011, 08:57:05 PM
Perfect, Patrice version posted in the post did the work.

Many thanks
Title: Re: Vista-Icons and the Powerbasic Resource Compiler
Post by: James C. Fuller on April 03, 2011, 10:17:26 PM
FWIW I use Jeremy Gordon's resource compiler.
http://www.godevtool.com/Gorcjorg.zip

James
Title: Re: Vista-Icons and the Powerbasic Resource Compiler
Post by: Theo Gottwald on August 06, 2011, 07:08:17 AM
Just to complete the Info here.
PB 10 can compile all Icons with the builtin Resource compiler.
Therefore do NOT use ".rc" files anymore but use the RESOURCE commands that are directly in the ".bas" file.
This way the builtin Resource compiler is used and anything should work fine.
Title: Re: Vista-Icons and the Powerbasic Resource Compiler
Post by: Dominic Mitchell on August 06, 2011, 11:52:25 AM
Quote
Therefore do NOT use ".rc" files anymore but use the RESOURCE commands that are directly in the ".bas" file
Unfortunately, *.rc files are still needed, because there are some important things that the #Resource commands
cannot handle.
Title: Re: Vista-Icons and the Powerbasic Resource Compiler
Post by: Theo Gottwald on August 17, 2011, 01:21:15 PM
What exactly is taht, Dominic?
Maybe you can report these for future improvements?

Did you try, if both (".rc") and internal recourcecompiler can be used together?