xercesxmldom file not found in Delphi XE4 - delphi

I am migrating my Delphi 7 code to Delphi XE4.
In one of the files in Delphi 7, I found xercesxmldom in the uses. I found that its dcu is placed in C:\Program Files\Borland\Delphi7\Lib.
When I tried to compile this file in Delphi XE4 environment, I got error xercesxmldom.dcu not found. I searched my entire C drive but it was not there anywhere.
I thought it is deprecated now. So I commented it out as it was nowhere used in the file and project compiled successfully.
Now when I try to open dfm file by double clicking on it, I get error No matching Dom Vendor: "XercesXML".
When pressed OK, dfm opens fine. I don't know why am I getting this error message?

The error you are seeing is because, although you have stopped referring to the xercesxmldom unit, your code still sets the DOM vendor to XercesXML. You'll need to choose a different DOM vendor. You need to locate everywhere in your program where you assign to the DOMVendor property and modify it accordingly.

Related

Delphi 10 Seattle - [dcc32 Error] E2161 Error: RLINK32: Unsupported 16bit resource in file "C:\Development\Testing\Unit1.dfm"

I have an issue with the compile of a long running project which is now showing the error indicated above. The issue arises from a specific component which is in herrited from TCombobox. If I place the component in on a blank form with no other controls the project will compile and run. I then save the project and re-open then re-compile the project will give the error. The only solution is to remove the component and put it back in which then allows the project to compile and run until it is closed and re-opened again.
I am currently upgrading from XE4 to 10 Seattle and have two identical copies of the full project code and the error is occuring in both.
Any ideas would be most appreciated
When this occurred in a Delphi 10.2.3 app, I noted that a similar app had System.UIConsts above several FMX entries in the Uses clause, so I moved it up in this app and the problem went away.

Version Info in Delphi 7 not working

I was assigned to make a small modification in a Delphi project.
To register that mod, my boss told me to increment the build number in Project options > Version Info.
I did that, but after compiling and building, when I look at the file properties, file version is not updated. The exe file was indeed compiled (I checked the modification date and it matches the time of build). The version number in the final EXE is unchanged, and not equal to the number I set in Version Info tab.
When I search Google about this, the only results I could find was tutorials to use this version feature and people with problems enabling it.
I tried reopening the project, deleting the generated EXE and rebuilding, removed the .RES file (the build fails because there's no RES file) and commented out the {$R *.RES} directive (no Version Info is included at all).
I'm not the original developer of this project, and the original one is not available anymore.
I think this could be related to this post, but it is from another Delphi version, and I couldn't find a dproj file in my project.
So, anyone knows whats wrong? Is it some kind of bug or am I missing something? Is there another option I should change so this option takes effect?
Use build instead of compile... it have no shortcut, you find it in Project menu (under compile)

Delphi XE6. [dcc32 Fatal Error] F2438 UCS-4 text encoding not supported. Convert to UCS-2 or UTF-8

Im trying to compile/build my project but i receive this error below:
[dcc32 Fatal Error] F2438 UCS-4 text encoding not supported. Convert to UCS-2 or UTF-8
The IDE do not show me what file/line i need to convert. I even dont know if is this i need to do really.
As i see, i need to convert the file for utf-8 correct?
This project as originally made with delphi 2010, now im trying to convert for XE6.
How i resolve this error?
Im using Delphi XE6, win 7 64 bit ultimate.
Open a source file, right-click on the Code Editor, and select "File Format | UTF8". Do that for all of your source files.
Or, narrow down the specific offending file. Try using SysInternals Process Monitor to see which file is being accessed at the time of the failure.
I had the same error(F2438) in a Delphi\XE5 project which had many .pas files. Error showed up when I had rebuilt all files in the project after deleting DCU's. I was able to uncover the one ".pas" file that somehow got saved as UTF-32LE format. The tool I found to locate the problem file was "File Encoding checker" which located the problem file in my project folder. URL for the tool is https://encodingchecker.codeplex.com/. I then had to convert back the problem "pas" file to be saved as UTF8\ascii text and on compiling the F2438 error was cleared up.

error in starting the program and adding component

I am new to delphi,
when opening one unit I get this error message,
Error reading cp_port.BaudRate: Property BaudRate does not exist. Ignore the error and continue?
and when I try to run the program, some components that added is gone, I mean, I need to install it again, but no luck, still my program can't start?
how can i solve this?
I tried to Google it but I can't find the answer. help me. thanks
There is a mismatch between the .dfm file and the component code for the object named cp_port. The version of the component used to create the .dfm file includes a property named BaudRate. That property does not exist in the version of the component that is trying to read the .dfm file when you encounter the error.
The solution to such an error is to make sure that you use the same version of the component as was used to make the .dfm file.

Delphi XE3 File Not Found GIFImage.dcu

My first question here - this is new install of Delphi XE3. I thought animated GIF support was now built in to Delphi (since 2007?).
When I drop a TImage on my form, all is good until I populate the Picture field with an animated GIF file. As soon as I do that, the IDE adds the following to my uses clause
uses ... , Vcl.Imaging.GIFImg, GIFImage;
At that point, the IDE and compiler say it can't find GIFImage.dcu
[dcc32 Fatal Error] pco.pas(7): F1026 File not found: 'GIFImage.dcu'
I've searched my system and I don't find a GIFImage.dcu file anywhere. There are some TGIFImage files in some of the RAD Studio folders - like .bpl, .bpi, .dcp, .lib, and two .hpp files - one for both TGIFImage and GIFImage.
If I go do a download of the GIFImage stuff from Finn's site here http://www.tolderlund.eu/delphi/, and then put the GIFImage.pas file in my project, the situation resolves itself.
But according to this post How to use Animated Gif in a delphi form, GIFImage is now built in to Delphi, so I don't think I should have to do that ... So what am I missing here? TIA.
The name of the unit in XE3 is Vcl.Imaging.GIFImg. The TGIFImage class is defined in that unit.
There is no GIFImage unit in XE3. Simply remove all references to that unit.
I guess at some point the unit was renamed. Probably when it was taken on by Embarcadero and incorporated into Delphi.
If I go do a download of the GIFImage stuff from Finn's site here http://www.tolderlund.eu/delphi/, and then put the GIFImage.pas file in my project, the situation resolves itself.
Don't do this. Delete those files. If you go down that route you will have two versions of the same GIF code.

Resources