Delphi

How add Delphi XE2 64bit support to a simple Delphi XE2 32bit VCL component?

只愿长相守 提交于 2019-12-30 05:53:06
问题 I need convert a VCL component from 32bit to 64bit (Delphi XE2). Now infact I can install it only if I select "32bit Platform", if I select "64bit Platform" I can compile it but not install (there is not the install menu). How can I add 64bit support and install it for 64bit application? 回答1: If you mean "install it into the IDE", the simple answer is that you cannot. The IDE is a 32-bit application and is not designed to host 64-bit DLL's. Any components or plug-ins must be compiled for 32

SQL query with variables

跟風遠走 提交于 2019-12-30 05:26:09
问题 Hey guys I need help with this please... I am doing a PAT for school and I am doing the following how can I correct it... I want to send an entered email address , name , Id number , birth date , gender , town and all is string my statement is Adoquery1.sql.text := 'insert into besprekings values('email', 'name', 'Id', 'birth', 'gender', 'town')'; The fields are as follows: Email(string), Name(string), ID(string), Birth(string), Gender(string), town(string) This is not really homework it is a

Finding common elements in two arrays

此生再无相见时 提交于 2019-12-30 05:23:09
问题 I’ve declared a type similar to the following. type TLikes = record Name : string[20]; favColours : array of string[20]; faves = array of TLikes; Once the records are populated I save them to a binary file so the structure is like that shown below. [John], [Green] [White] [Blue] [Paul], [Blue] [Red] [White] [Green] [David], [Red] [Blue] [Green] [Bob], [White] [Blue] [Peter], [Blue] [Green] [Red] It’s easy to find out what colours David, for example, likes. A small problem occurs when I want

How stop (cancel) a download using TIdHTTP

血红的双手。 提交于 2019-12-30 05:13:47
问题 I'm using the TIdHTTP.Get procedure in a thread to download a file . My question is how I can stop (cancel) the download of the file? 回答1: You could use the default procedure idhttp1.Disconnect... 回答2: I would try to cancel it by throwing an silent exception using Abort method in the TIdHTTP.OnWork event. This event is fired for read/write operations, so it's fired also in your downloading progress. type TDownloadThread = class(TThread) private FIdHTTP: TIdHTTP; FCancel: boolean; procedure

Delphi skinning libraries

蹲街弑〆低调 提交于 2019-12-30 05:12:16
问题 I would like to know what is the best skinning library for Delphi application for you. I'm looking to WinXP/Windows Vista/Windows 7 compatibilities, so the application doesn't crash or work weird because of the skins. I have tried Theme Engine but it doen't work fine in Windows Vista. I'm currently using Delphi 2006. Thanks. 回答1: I used the VCLSkin component for an extended period with excellent results in Win xp, vista and 7. is extremely easy to use (you just drag the component to your main

Implement Change Journal in Delphi

折月煮酒 提交于 2019-12-30 05:11:13
问题 I'm seeking to use Change Journal instead of ReadDirectoryChangesW to track changes in my delphi XE2 application (as for why: ReadDirectoryChangesW is not that reliable) The closest I could find in delphi/pascal is something called Delphi MFT/Journal helpers, it contains two pascal units: uMFT.pas and uDevNotification.pas. The code above deal with MFT (very nicely actually), but nothing as far change journal goes. I also found this C# code, which seems to do what I want, only it's in C# My

Raudus vs ExtPascal: Delphi web developement alternatives that use ExtJS [closed]

守給你的承諾、 提交于 2019-12-30 05:07:07
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . Delphi developers has several tools (several alternatives to ASP.NET) for building web applications. While No.1 framework is Intraweb,

Delphi Android - detect device orientation change

孤人 提交于 2019-12-30 05:06:10
问题 New to both Delphi Android development. How do I detect that the screen orientation has changed? i.e. from Portrait to Landscape and vice versa? And how do I fire off code when this happens? For example I have an image sized at let's say 300x200 in portrait mode but when the device switches to landscape I want it to adjust and take up full screen width. 回答1: In your form implement a method procedure DoOrientationChanged(const Sender: TObject; const M: TMessage); where you handle the current

Get the Percentage of Total CPU Usage

我与影子孤独终老i 提交于 2019-12-30 04:59:11
问题 I am trying to get the % of total CPU usage to a label1.Caption I've searched and found these: didn't work - http://www.vbforums.com/showthread.php?345723-DELPHI-Get-CPU-Usage not what I need - http://delphi.cjcsoft.net/viewthread.php?tid=42837 also found bunch of solutions regarding calculating the Usage per process but that is not what i am looking for , i just want the total CPU usage like this widget : this is what i am working on : I believe there is a simple way like when we get RAM

how to safely bypass Delphi Error: “types of formal and actual parameters must be identical”

大憨熊 提交于 2019-12-30 04:49:08
问题 I need a way to write a generic procedure to act upon an object type or any of its descendants. My first attempt was to declare procedure TotalDestroy(var obj:TMyObject); but when using it with a descendant object type TMyNewerObject = class(TMyObject); var someNewerObject: TMyNewerObject; TotalDestroy(someNewerObject); I get the infamous error "types of formal and actual parameters must be identical" So, while strugling to find a solution, I looked at the source code of Delphi system