是源程序吗,如果是,在project manager中,选中该包的工程文件,右键,view source,
把 vcl40 改为 vcl50 (或其它  delphi4 的东西改为 delphi5 的东西)