Author Topic: Vista-Icons and the Powerbasic Resource Compiler  (Read 7108 times)

0 Members and 1 Guest are viewing this topic.

Offline Theo Gottwald

  • Administrator
  • Hero Member
  • *****
  • Posts: 966
    • it-berater
Vista-Icons and the Powerbasic Resource Compiler
« on: April 23, 2009, 12:51:35 PM »
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 ...
« Last Edit: April 23, 2009, 01:23:05 PM by Theo Gottwald »

Offline Eros Olmi

  • Sr. Member
  • ****
  • Posts: 268
    • thinBasic
Re: Vista-Icons and the Powerbasic Resource Compiler
« Reply #1 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
« Last Edit: April 03, 2011, 07:37:52 PM by Eros Olmi »
thinBasic Script Interpreter - www.thinbasic.com | www.thinbasic.com/community
Win7Pro 64bit - 8GB Ram - Intel i7 M620 2.67GHz - NVIDIA Quadro FX1800M 1GB

Offline Edwin Knoppert

  • Sr. Member
  • ****
  • Posts: 284
    • Hellobasic.com
Re: Vista-Icons and the Powerbasic Resource Compiler
« Reply #2 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.

Offline Josť Roca

  • Administrator
  • Hero Member
  • *****
  • Posts: 2530
    • Josť Roca Software
Re: Vista-Icons and the Powerbasic Resource Compiler
« Reply #3 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

Offline Eros Olmi

  • Sr. Member
  • ****
  • Posts: 268
    • thinBasic
Re: Vista-Icons and the Powerbasic Resource Compiler
« Reply #4 on: April 03, 2011, 08:57:05 PM »
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

Offline James C. Fuller

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 674
Re: Vista-Icons and the Powerbasic Resource Compiler
« Reply #5 on: April 03, 2011, 10:17:26 PM »
FWIW I use Jeremy Gordon's resource compiler.
http://www.godevtool.com/Gorcjorg.zip

James

Offline Theo Gottwald

  • Administrator
  • Hero Member
  • *****
  • Posts: 966
    • it-berater
Re: Vista-Icons and the Powerbasic Resource Compiler
« Reply #6 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.

Offline Dominic Mitchell

  • Jr. Member
  • **
  • Posts: 64
    • Prometheus Software
Re: Vista-Icons and the Powerbasic Resource Compiler
« Reply #7 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.
Dominic Mitchell
Phoenix Visual Designer
http://www.phnxthunder.com

Offline Theo Gottwald

  • Administrator
  • Hero Member
  • *****
  • Posts: 966
    • it-berater
Re: Vista-Icons and the Powerbasic Resource Compiler
« Reply #8 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?