• Welcome to Jose's Read Only Forum 2023.
 

Vista-Icons and the Powerbasic Resource Compiler

Started by Theo Gottwald, April 23, 2009, 12:51:35 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Theo Gottwald

The Topic is this:

New Icons for Vista

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 ...

Eros Olmi

#1
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
thinBasic Script Interpreter - www.thinbasic.com | www.thinbasic.com/community
Win7Pro 64bit - 8GB Ram - Intel i7 M620 2.67GHz - NVIDIA Quadro FX1800M 1GB

Edwin Knoppert

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.

José Roca


Eros Olmi

Perfect, Patrice version posted in the post did the work.

Many thanks
thinBasic Script Interpreter - www.thinbasic.com | www.thinbasic.com/community
Win7Pro 64bit - 8GB Ram - Intel i7 M620 2.67GHz - NVIDIA Quadro FX1800M 1GB

James C. Fuller


Theo Gottwald

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.

Dominic Mitchell

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.
Dominic Mitchell
Phoenix Visual Designer
http://www.phnxthunder.com

Theo Gottwald

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?