delphi-xe3

Porting Assembler x86 CPU ID code to AMD64

不问归期 提交于 2019-12-13 11:43:32
问题 I have a problem. I have following x86 delphi code which is written in ASM. I need to port this to AMD64? type TCPUID = array[1..4] of Longint; function GetCID : TCPUID; assembler; register; asm push ebx push edi mov edi, eax mov eax, 1 dw $A20F stosd mov eax, ebx stosd mov eax, ecx stosd mov eax, edx stosd pop edi pop ebx end; I have never programmed in assembly, does anyone know what the port would be or how I would go about changing it. 回答1: I am not Win64 assembler guru, but the next

How can erase a single Picture from a TCanvas?

可紊 提交于 2019-12-13 09:58:59
问题 I have in my form, a Transparent Panel which contains a Canvas (I think its implementation is not really important here; someone tell me otherwise). I'm drawing many Bitmaps on this Canvas, bya using: Panel.Canvas.Draw(Image.Left, Image.Top, Image.Picture.Bitmap, Opacity); //Image is a TImage instance //Opacity is an integer 0..255 But when I do some change in the TImage, like redimensioning or moving around the form, I redaw its Picture in the panel. The issue here is that the old positioned

Is there a version of Async Pro which works with Delphi XE3?

╄→尐↘猪︶ㄣ 提交于 2019-12-13 07:35:45
问题 I want to use Async Pro in my Delphi XE3. I found a version A407 on SourceForge, which seems to be the latest. When I try to install the runtime package A407_R100.bpl I get an error that a data length is longer than 2GB. When I fix this (with some guesswork) I get 4 other errors. I can try to fix those as well, but I'm afraid I will have to patch so much of the code that it won't work anymore. Is there a version of Async Pro which works with XE3? Or at least clear and proven instructions how

Install both Delphi 2010 and XE3 on the same Windows?

风流意气都作罢 提交于 2019-12-13 04:27:33
问题 My Win7 now installed RAD Studio 2010 with Delphi 2010, can I install Delphi XE3 separately? So both Delphi 2010 and XE3 work on the same Windows? Thanks! 回答1: Yes you can. You can install all versions of Delphi side by side on a single machine. I'm currently sitting at a machine with D6, 2010, XE, XE2 and XE3. Different people have different ways to organise side by side installations. I personally remove all references to Delphi from my system PATH variable. Then if I need to do anything at

Fuse Table temperature with infrared image (Jpg*) [closed]

时光总嘲笑我的痴心妄想 提交于 2019-12-13 04:26:38
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 6 years ago . Is there a way to fuse the Jpeg image with the correspondant pixel temperature shown in the stringgrid attached. After the fusion, mouse arround and read the temperatures from the image. If there is, please can

Minimize form in Firemonkey application

拥有回忆 提交于 2019-12-12 20:25:51
问题 I use this: Application.Minimize; in Vcl delphi application, but in Firemonkey I've got Undeclared identifire error. How can I minimize my firemonkey form? 回答1: Try using the WindowState property like so WindowState := TWindowState.wsMinimized; 来源: https://stackoverflow.com/questions/15198531/minimize-form-in-firemonkey-application

How to repair broken Delpi XE3 IDE after installation of custom package?

一个人想着一个人 提交于 2019-12-12 12:53:54
问题 I have created a new package with one component in it (descendant of TSpeedButton), compiled the package and installed it in the IDE (Delphi XE3 Pro). It worked as far as I have tested it (I could use my component in design- and runtime). BUT: I have closed the IDE and now I can't start it. It displays the splashscreen and shows progress: Documentation Insight Express CodeSite Express Jedi Code Library Jedi Visual Component Library Up to All designtime packages loaded (translated from German,

FireMonkey tray icon with a menu

送分小仙女□ 提交于 2019-12-12 03:45:55
问题 Continuing the favorite question from last year, and with Delphi XE3 (Firemonkey 2) out there is still vague support for the silly little tray icon, on any platform whether it's full-fledged OS or iOS. Suppose we have a tray icon by using platform-dependent code. How would you "click" that icon to receive an FMX HD Form (perhaps a menu or a more hi-fi experience)? There are a few tricky things to overcome, and please think of a way to do so without installing OS support outside of the

SysUtils.LongDayNames undeclared identifier

僤鯓⒐⒋嵵緔 提交于 2019-12-11 18:33:22
问题 I am very much new to delphi and i tried the following code procedure TForm1.Button1Click(Sender: TObject); var myDate : TDateTime; day : string; begin myDate := EncodeDate(2002, 12, 31); day := LongDayNames[DayOfWeek(myDate)]; ShowMessage('Christmas day 2002 is on a '+day); end; I have declared System.SysUtils in Uses section but still i am getting the error Undeclared identifier. I am using Delphi XE3 17.0 回答1: In XE2 LongDayNames moved to TFormatSettings. http://docwiki.embarcadero.com

How to print a word document duplex using OLE autimation with delphi xe3

岁酱吖の 提交于 2019-12-11 16:50:52
问题 I am currently trying to print a created document on both sides of paper using the code below. But i cannot find any way to change it so the printer prints duplex without the user having to select print duplex. If you have any suggestions it would be great. Code: Dlg := wrdApp.Dialogs.Item(88); dlg.show; wrdApp.PrintOut(Background := false, range := dlg.Range, From := dlg.From, To := dlg.To, PageType := dlg.Type, Copies := dlg.NumCopies, Pages := dlg.Pages, Collate := dlg.Collate, PrintToFile