delphi-xe4

Is a separate Delphi XE4 license required for a build machine?

孤人 提交于 2019-12-12 08:12:39
问题 For building applications via dcc32 onto build server I could use Delphi Trial. There wasn't any problems with licenses for such approach. Now, I am going to use building Delphi XE4 applications onto TeamCity via msbuild . Do I need to have a separate license Delphi XE4 reguired for a build machine? Thank you in advance! 回答1: From the license.rtf file distributed with XE4: 2.4. Command Line Compiler. Licensee may install the command line compiler on a separate computer from the Product itself

Typecast Generic type to other type

只愿长相守 提交于 2019-12-12 00:52:14
问题 i have a base class TEventMulticaster = class(Tobject) public procedure Notify(aMap: WideString); end; procedure TEventMulticaster.Notify(aMap: WideString); begin // Do something end; And a derived generic class TEventMulticaster<T> = class(TEventMulticaster) public procedure Notify(aMap: T ); reintroduce; end; procedure TEventMulticaster<T>.Notify(aMap: T); begin inherited Notify(aMap) // ERROR end; when base class Notify is call it give me error "Incompatible types: 'WideString' and 'T'"

E2017 Pointer type required using move function in Delphi 7 way

若如初见. 提交于 2019-12-11 19:34:32
问题 I'm trying to port a project from Delphi 7 to the new Delphi XE4 and I'm facing a problem with the move function : {Create a temp record buffer} HoldRec := AllocMem(RecordSize); {Fill the temp record buffer with the current record} move(ActiveBuffer^, HoldRec^, RecordSize); //Here the E2017 Error The compiler throw an : [dcc32 Error] E2017 Pointer type required , error when arrive at the move statement ... Why ? In Delphi 7 it compile without any problem, why Delphi XE4 doesn't compile ? The

Encoding in Indy 10 and Delphi

江枫思渺然 提交于 2019-12-11 13:19:31
问题 I am using Indy 10 with Delphi. Following is my code which uses EncodeString method of Indy to encode a string. var EncodedString : String; StringToBeEncoded : String; EncoderMIME: TIdEncoderMIME; .... .... EncodedString := EncoderMIME.EncodeString(StringToBeEncoded); I am not getting the correct value in encoded sting. 回答1: What is the purpose of IndyTextEncoding_OSDefault ? Here's the source code for IndyTextEncoding_OSDefault . function IndyTextEncoding_OSDefault: IIdTextEncoding; begin if

Unsupported on-disk structure for file mydatabase.fdb

╄→гoц情女王★ 提交于 2019-12-11 13:19:29
问题 My old delphi 7 application was using devart Interbase driver to connect with mydatabase.fdb. When I migrated this application to delphi xe4, I installed latest version of devart interbase for delphi xe4. But with this version, I am getting following error: Unsupported on-disk structure for file mydatabase.fdb What is the cause of this error? How should I get rid from it? I found the link: http://www.firebirdfaq.org/faq80/ 2 reasons are mentioned there for possible causes for this error. But

Access Violation when i drop a TidSMTP on a Form

。_饼干妹妹 提交于 2019-12-11 06:54:41
问题 i've a problem with Delphi XE4: when i drop on a form an TIdSmtp or TIsSSLIOHandlerSocketOpenSSL i receive this error: [511EDABF]{IndySystem180.bpl} IdStack.TIdStack.IncUsage (Line 688, "IdStack.pas" + 11) + $7 [511EEBB2]{IndySystem180.bpl} IdComponent.TIdComponent.InitComponent (Line 229, "IdComponent.pas" + 1) + $5 [50EE84A2]{IndyCore180.bpl} IdTCPConnection.TIdTCPConnection.InitComponent (Line 912, "IdTCPConnection.pas" + 1) + $2 [50EE0D99]{IndyCore180.bpl} IdTCPClient.TIdTCPClientCustom

DelphiXE4 64-bit VCL Platform Growing Pains - How to set 64-bit paths?

走远了吗. 提交于 2019-12-11 03:05:37
问题 I recently upgraded from Delphi 2010 to Delphi XE4, but the paths to the source files on one application I am working on are not found by the compiler. I go to Tools-Project-Options and select the Platform as 64-bit Windows and add the paths to the source files to the Library path. I close the dialog and try to compile but the paths are not found. I reopen project options and find that it has reset itself to 32-bit windows. What is causing the dialog to not set the paths and revert to 32-Bit

How to play system sound in Delphi FireMonkey XE4?

一世执手 提交于 2019-12-11 01:49:25
问题 I want to play system sound in both Windows and MAC OS X. To play sound in Windows used something like this: PlaySound('C:\Windows\Media\Windows Default.wav', 0, SND_FILENAME + SND_ASYNC); I am sure I have to use TMediaPlayer. 回答1: You are correct, you can use the TMediaPlayer component, documentation clearly states : TMediaPlayer playbacks audio files and the audio component of a video file. To specify the media file to be played by the current TMediaPlayer, set the FileName property. The

Cannot terminate threads

痴心易碎 提交于 2019-12-11 01:49:03
问题 I use threads in my project. And I wanna kill and terminate a thread immediately. sample: type test = class(TThread) private { Private declarations } protected procedure Execute; override; end; var Form1: TForm1; a:tthread; implementation {$R *.dfm} procedure test.Execute; begin Synchronize(procedure begin form1.ProgressBar1.position := 0; sleep(5000); form1.ProgressBar1.position := 100; end ); end; procedure TForm1.btn_startClick(Sender: TObject); begin a:=test.Create(false); end; procedure

Delphi XE4 stringgrid selectcell in FireMonkey

给你一囗甜甜゛ 提交于 2019-12-11 01:21:09
问题 Does anyone know how to retrieve the column and row when selecting a cell in a FireMonkey stringgrid (in other words, when clicking on a cell, we want to know which column/row is being selected)...? We are using Delphi XE4. Thanks in advance. 回答1: To get the index of the current Row, use the Selected property. To get the index of the current Column, use the ColumnIndex property. 来源: https://stackoverflow.com/questions/17808168/delphi-xe4-stringgrid-selectcell-in-firemonkey