delphi-xe8

Using Static & Dynamic Libraries In Embarcadero C++ Builder

孤街浪徒 提交于 2020-01-05 17:58:24
问题 I have an iOS static library (.a & .h file) and would like to know how to implement it into a C++ Builder project. The documentation cover's how to import a Java library in some detail but does not touch on a third party iOS library at all. Nor are there any blog posts or video's from Embarcadero about doing so. The closest post I have found is: Checking for an internet connection on mobile devices with Delphi XE5 However, it is not clear how to link in the .a file and then how to access the

How to properly access a VARCHAR(MAX) parameter value of a FireDAC dataset when getting “data too large for variable” error?

☆樱花仙子☆ 提交于 2020-01-05 07:42:53
问题 Our application updates and accesses data using SQL Server 2014. I have a table of which the last column ('Contents') is created as VARCHAR(MAX) . We are using Delphi XE8, and are using a FireDAC TFDQuery component to update this column. ..... FDquery.ParamByName('Contents').AsString:=Contents; FDquery.ExecSQL; When running this update, I get the following error: Exception raised with message [FireDAC][Phys][ODBC]-345. Data too large for variable [CONTENTS]. Max len = [8002], actual len =

How can I add a library path to a delphi project?

陌路散爱 提交于 2020-01-02 16:18:25
问题 I have a couple precompiled (3rd party) libraries that I need to use in my project. I can get it to build if I put foo.a in the root of my project folder, however, I have a 32 bit version and a 64 bit version of the library and I don't want to have to swap out foo.a with foo.32.a and foo.64.a every time I build each version of the application. In this particular case I've put them in: [myroot]\iOSDevice32\Debug\foo.a [myroot]\iOSDevice32\Release\foo.a and [myroot]\iOSDevice64\Debug\foo.a

Delphi: Making a component visible to live binding

梦想的初衷 提交于 2020-01-01 15:38:08
问题 I have been trying to make a test object that has a string property visible to the visual binding form. The component is registered with the appropriate properties. Using XE8 and Firemonkey. I can get it to show on the visual binder by selecting it using the hide show elements, however I cannot get it to bind the Foo string to a TEdit text property, the readonly (which does nothing yet) will bind to the Text Property. how do I get it show in it with default class visibility why doesn't the

how to internationalize my application in Delphi XE?

岁酱吖の 提交于 2019-12-31 02:58:13
问题 I am using the Translation Manager Included in Delphi (xe8, but should be the same in older version) I go to Projet->langages->add (choose english). Then I translate the texts(here the button) I update it all and compile it all: I got the .exe and .enu file and it is french. When I go to Projet->languages->set Active and I choose english, I compile it all and my application is now in english (button says hello ) That's great. However my goal is that my application AUTOMATICALLY swicthes from

Delphi XE8 bug in TList<T>, need workaround

佐手、 提交于 2019-12-29 18:34:03
问题 After upgrading to XE8 some of our projects start to break data. Looks like a bug in TList realization. program XE8Bug1; {$APPTYPE CONSOLE} uses System.SysUtils, Generics.Collections; type TRecord = record A: Integer; B: Int64; end; var FRecord: TRecord; FList: TList<TRecord>; begin FList := TList<TRecord>.Create; FRecord.A := 1; FList.Insert(0, FRecord); FRecord.A := 3; FList.Insert(1, FRecord); FRecord.A := 2; FList.Insert(1, FRecord); Writeln(IntToStr(FList[0].A) + IntToStr(FList[1].A) +

How to use Pipeline pattern in Delphi

你。 提交于 2019-12-29 08:14:23
问题 I am trying to implement a Pipeline pattern in my test project (How to make a Mutlithreded idhttp calls to do work on a StringList), but am having a struggle adapting TThread code to Pipeline pattern code. There are not many resources about how to use it. I tried my best below, please DO NOT downvote, I know my code is messy but I'll edit my question if needed. type TForm2 = class(TForm) ... private procedure Retriever(const input: TOmniValue; var output: TOmniValue); procedure Inserter(const

Displaying items on the dbctrlgrid without datasource in Delphi

不打扰是莪最后的温柔 提交于 2019-12-24 12:39:32
问题 I am trying to display items from a list of objects. I want to display the data in the following format as shown in the picture. type TFeedItem = class private FTitle: string; FDescription: string; FLink: string; FImageUrl: string; public property Title: string read FTitle; property Description: string read FDescription; property Link: string read FLink; property ImageUrl: string read FImageUrl; end; //Code to disply items var I: Integer; list: TObjectList<TFeedItem> begin for I := 0 to list

Alternatives for XSLT transformations with Delphi XE8

感情迁移 提交于 2019-12-24 11:25:31
问题 I am trying to perform an XSLT transformation with Delphi XE8 and am running into problems. My XSL file refers to an external XSL file using an import statement whose href attribute has a relative path. The transform fails with the error "Named template 'skrivUtDate' does not appear in the stylesheet." The definition 'skrivUtDate' is located in the external XSL file. The definition looks like the following: <xsl:template name="skrivUtDate"> <xsl:param name="oppgittTid"/> <xsl:if test="string

Custom notification interval

限于喜欢 提交于 2019-12-24 04:56:11
问题 I am building an app in FireMonkey under Rad Studio XE8. I would like to have custom intervals on my notifications (FMX.Notification). However notification repeats can only be set to certain intervals. TRepeatInterval = (None, Second, Minute, Hour, Day, Week, Weekday, Month, Quarter, Year, Era); If i whant to fire each 15 minutes, would I really need to create four notification (at 0 , 15, 30, 45 minutes) and repeat them every hour with TRepeatInterval(4)? 回答1: The documentation for FMX