开发者

Problems with Bitbtn in Delphi 6 under Windows vista

开发者 https://www.devze.com 2023-02-01 21:34 出处:网络
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 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.K开发者_高级运维ind: 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!


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消