Martin
Martin

Reputation: 161

Problems with Bitbtn in Delphi 6 under Windows vista

I've been working for a long time under Windows XP with Delphi 6 (and under Win2k before). As I've recently bought a new laptop, I had to start using Windows Vista.

I've installed Delphi 6. Whenever I used the TBitBtn component, I get error when running the compiled program: like resource BBOK not found, resource BBcancel not found, etc.

"Project Project1.exe raised exception class EReadError with message 'Error reading BitBtn1.Kind: Resource BBCANCEL not found'. Process stopped. Use Step or Run to continue."

Right now, I do not have possibility to try to run the exe-file on WinXP; however I was able to compile the same code under WinXP and the produced executable ran fine under Windows Vista as well.

Is there some simple workaround other than upgrade to a newer version of Delphi?

Thanks in advance!

Upvotes: 1

Views: 720

Answers (1)

Martin
Martin

Reputation: 161

This is definitely not a very neat solution, but this issue seems working after:

  • Copying Buttons.pas and buttons.res from Sources\Vcl to the directory with my project.
  • Editing Buttons.pas to use QBOK, QBCANCEL etc. instead of BBOK, BBCANCEL.

Thanks for your comments.

Upvotes: 0

Related Questions