Home > Back-end >  Delphi7 Delphi2010 and compile the directive
Delphi7 Delphi2010 and compile the directive

Time:10-02

Today found a problem
The following instructions
{$R 'Res \ CCIme. Res'' Res \ CCIme rc '}
Run results in Delphi7 is
Put in Res folder CCIme. Rc file compiler generates CCIme. Res CCIme. Res in Res folder
CCIme. Res connect to give birth to a becomes EXE will automatically find res folder CCIme. Res

But in Delphi2010 operation result is
Put in the Res folder CCIme. Rc file compiler generates CCIme. Res CCIme. Res in EXE folder
CCIme. Res connect for EXE from time to time to look for res folder CCIme. Res lead to report errors found no res \ CCIme res
You have to be modified to the following to normal under Delphi2010
{$R 'CCIme. Res' res \ CCIme rc'}
So that he will keep the rc generated res folder link to exe is also connected exe folder res

Does anyone know why there is difference?
  • Related