Delphi

Difference between
and

▼魔方 西西 提交于 2020-06-17 08:10:43
问题 I need to parse some text/xml files I get from different sources. Now I have found some problems with line breaks. In some files i get as line break, in some others i get only . Now our Delphi XE 2 has some problems with , it is not imported correctly. For example: 1. City State Result of import: City State City State Result of import: City&&State Why does this occur and how to solve it? 回答1: There is no difference between these two XML texts. specifies the same character as .

Difference between
and

陌路散爱 提交于 2020-06-17 08:10:22
问题 I need to parse some text/xml files I get from different sources. Now I have found some problems with line breaks. In some files i get as line break, in some others i get only . Now our Delphi XE 2 has some problems with , it is not imported correctly. For example: 1. City State Result of import: City State City State Result of import: City&&State Why does this occur and how to solve it? 回答1: There is no difference between these two XML texts. specifies the same character as .

Undeclared Identifier errors related to DateSeparator and LongTimeFormat [duplicate]

╄→гoц情女王★ 提交于 2020-06-16 07:26:29
问题 This question already has answers here : DecimalSeparator in SysUtils and System.SysUtils (2 answers) Closed 5 years ago . I have a program that was created in Delphi 5 and the program still runs nearly perfect on Win7 and Win8. However, when trying to run this code in XE6 (trial version) I get two errors that I am having trouble fixing. Errors are with 'DateSeparator' and 'LongTimeFormat' with each having the error "undeclared identifier" The code segment is as follows: function

Undeclared Identifier errors related to DateSeparator and LongTimeFormat [duplicate]

ε祈祈猫儿з 提交于 2020-06-16 07:24:41
问题 This question already has answers here : DecimalSeparator in SysUtils and System.SysUtils (2 answers) Closed 5 years ago . I have a program that was created in Delphi 5 and the program still runs nearly perfect on Win7 and Win8. However, when trying to run this code in XE6 (trial version) I get two errors that I am having trouble fixing. Errors are with 'DateSeparator' and 'LongTimeFormat' with each having the error "undeclared identifier" The code segment is as follows: function

Delphi 10 TRestClient MIME boundary issue

元气小坏坏 提交于 2020-06-16 04:54:47
问题 I am trying to consume a REST service using TRestClient but I believe there is an issue with the boundary string for multipart content. I am capturing the body of the request I am sending, and this is the content type header: Content-Type: multipart/form-data; boundary=-------Embt-Boundary--07CC944C29DA577E Then, this is the first section of the multipart form: -----------Embt-Boundary--07CC944C29DA577E Content-Disposition: form-data; name="file"; filename="ce.csv" Content-Type: text/csv And

Can't load package %s error while installing a package

我的未来我决定 提交于 2020-06-12 06:22:09
问题 I'm testing on Delphi 2007 and my groupproject is composed by 2 packages. PackageRun.bpl It's marked as "runtime only" and contains a unit named "uMyTestRun.pas" in which is defined an empty TFrame descendant: unit uMyTestRun; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs; type TMyTest = class(TFrame) private { Private declarations } public { Public declarations } end; implementation {$R *.dfm} end. PackageDes.bpl It requires PackageRun.bpl,

Can't load package %s error while installing a package

谁都会走 提交于 2020-06-12 06:22:08
问题 I'm testing on Delphi 2007 and my groupproject is composed by 2 packages. PackageRun.bpl It's marked as "runtime only" and contains a unit named "uMyTestRun.pas" in which is defined an empty TFrame descendant: unit uMyTestRun; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs; type TMyTest = class(TFrame) private { Private declarations } public { Public declarations } end; implementation {$R *.dfm} end. PackageDes.bpl It requires PackageRun.bpl,

What's the difference between these Windows API signatures in Delphi?

ε祈祈猫儿з 提交于 2020-06-12 05:07:01
问题 Looking Windows.pas in Delphi, I see that there are several signatures as LoadLibrary (A) or (W) for loading a specific module. What are the differences between them and could I trust to call LoadLibrary always for all types of Windows platforms? 回答1: The Windows API provides either ANSI strings ( A ) or Unicode strings ( W ). Interally, the Windows API has both available. However, Delphi is defaulted to either one or the other, depending on the version of Delphi. Many other Windows languages

What's the difference between these Windows API signatures in Delphi?

穿精又带淫゛_ 提交于 2020-06-12 05:06:01
问题 Looking Windows.pas in Delphi, I see that there are several signatures as LoadLibrary (A) or (W) for loading a specific module. What are the differences between them and could I trust to call LoadLibrary always for all types of Windows platforms? 回答1: The Windows API provides either ANSI strings ( A ) or Unicode strings ( W ). Interally, the Windows API has both available. However, Delphi is defaulted to either one or the other, depending on the version of Delphi. Many other Windows languages

What's the difference between these Windows API signatures in Delphi?

こ雲淡風輕ζ 提交于 2020-06-12 05:05:26
问题 Looking Windows.pas in Delphi, I see that there are several signatures as LoadLibrary (A) or (W) for loading a specific module. What are the differences between them and could I trust to call LoadLibrary always for all types of Windows platforms? 回答1: The Windows API provides either ANSI strings ( A ) or Unicode strings ( W ). Interally, the Windows API has both available. However, Delphi is defaulted to either one or the other, depending on the version of Delphi. Many other Windows languages