When I open a Delphi 7 project in Delphi XE2 and open the Project option, I get an error message:
"Unable to set Icon: Cannot open file "........\AppName_Icon.ico". The system cannot find the file specified".
I also noticed that project version information is missing. The Delphi 7 project has a .Res file with MAINICON along with saved version information. Why can't Delphi XE2 use this .Res file to retrieve MAINICON and version information.
Also, if I try to compile the application in XE2, I get an error message -
[BRCC32 Error] MtxReq.vrc(2): file not found: MtxReq_Icon.ico
The MTXReq.vrc file (new file) is created and the MtxReq.res file is deleted.
Why is this happening? I do not want to lose the project settings and parameters in the .res file.
Is there a way to get XE2 to use the .res file rather than deleting it?
Any help would be greatly appreciated.
Sorry, I can’t leave comments yet (need more repo points) ...
Warren is the answer to your question (wouldn’t it just delete your .dproj file and save only .dpr?)
I deleted .dproj, .dproj.local. I opened .dpr in XE2 and recreated the .dproj file. This will return the icon from .res, but I lost the project version information. Only the version information of the file and the version of the product was transferred, but any other version information was lost. (This is because of the default manifest file). Then I tried what I explained in step 1 of my solution. I open the .dproj file in notepad, which removes the tags and closes the .dproj file, and all information about my version is now restored. The problem here is $ (BDS) \ bin \ default_app.manifest. I also noticed that version information is stored in the tag under the tag in the .dproj file, and after deleting the manifest entries by default, the IDE correctly reads the version key information.
So basically, by deleting the .dpr file, I skipped the step of extracting and adding the .ico file to the project, but I had to edit the newly created .proj file and delete the entries for the default manifest to get version information. (another solution would be for manully to add version information and save the project. I have not tried this)