delphi-2010

Delphi 2010: whatever happened to TRTTIConstructor?

跟風遠走 提交于 2019-12-10 03:32:26
问题 I've got two questions (of which at least one is regarding RTTI in D2010 and dynamic instancing) I was reading what appears to be the foils for a conference talk by Barry Kelly, and found on p. 13 something that looked really interesting: TRTTIConstructor.Invoke . In an adjacent bullet point, one finds "Dynamically construct instances without needing virtual constructors and metaclasses". This seems like a great feature (and exactly what I need, btw)! However, when I look in the D2010 docs

Compression component

折月煮酒 提交于 2019-12-09 18:22:32
问题 I am looking for a compression component that supports Delphi2010 and allow me to do the basic operations of: create .zip archives extract from .zip archives delete .zip archives I also need the component to be free for commercial usage and possibly does not use/rely on a DLL (I don't mind if it does). So far I have looked into ZipForge, FlexCompress, KaZip and UnRAR, but I found out that I needed to purchase a license to commercially use ZipForge and FlexCompress. When it came to KaZip,

Unit finalization order for application, compiled with run-time packages?

青春壹個敷衍的年華 提交于 2019-12-09 18:05:51
问题 I need to execute my code after finalization of SysUtils unit. I've placed my code in separate unit and included it first in uses clause of dpr-file, like this: project Project1; uses MyUnit, // <- my separate unit SysUtils, Classes, SomeOtherUnits; procedure Test; begin // end; begin SetProc(Test); end. MyUnit looks like this: unit MyUnit; interface procedure SetProc(AProc: TProcedure); implementation var Test: TProcedure; procedure SetProc(AProc: TProcedure); begin Test := AProc; end;

TRibbon does not show tabs

南楼画角 提交于 2019-12-09 16:52:02
问题 I am running Delphi 2010 on both a 64 bit windows machine (Win 7), and a 32 bit windows machine (XP). I am trying to learn how to use the TRibbon control. I have been following the example in Marco Cantu's 2009 Handbook and watching YouTube Demos, but my control is not working like that as explained in the book or demos. I added two tabs, by right clicking the control. However, the TRibbon looked as exactly as it does in my screenshot, when i drop it on the main form. It is not as high as the

Building Multi threaded TCP/IP Server

自作多情 提交于 2019-12-09 05:47:45
问题 I wanna build a TCP/IP server that will be used by up to 100 concurrent clients, but still not sure how to get started. at least I need the server to this: Listening to client, and store all them on array or list. for each client, it need to receive and send data based on it's client status. The server should update the clients list when someone connect or disconnect. Prefer to work as service with GUI to manage it. Could anyone help how to get start with that,I looked at indy sample but they

CharInSet doesn't work with non English letters?

被刻印的时光 ゝ 提交于 2019-12-09 05:10:45
问题 I have updated an application from Delphi 2007 to Delphi 2010, everything went fine, except one statement that compiled fine but not working which is: If Edit1.Text[1] in ['S','س'] then ShowMessage('Found') else ShowMessage('Not Found') However, I knew that in will not, so I changed to CharInSet If CharinSet(Edit1.Text[1],['S','س']) then ShowMessage('Found') else ShowMessage('Not Found') but it never worked when the string is س , but always work with S , even I cast the edt1.Text1 with

tfs integration with delphi 2010

淺唱寂寞╮ 提交于 2019-12-08 20:25:30
We are currently upgrading from Delphi 7 to Delphi 2010. With Delphi 7 we use Source Connection to integrate Delphi 7 with TFS, but there does not look like there is going to be a Delphi 2010 version in time. Is there any other integration option out there? Jeroen Wiert Pluimers VssConneXion is not ready for Delphi 2010 yet (there is a version for Delphi 2009 on their downloads page ). Currently, I'm running the (Microsoft) Team Explorer for managing my source code check-out/check-in and work-items. It works fine, even though it is not integrated in the Delphi IDE. I've not tried which version

Is Delphi 2010 ready for production use?

好久不见. 提交于 2019-12-08 17:43:30
问题 I am currently using Delphi 2006 a few days ago I downloaded a copy of Delphi 2010. How stable is Delphi 2010? Should I wait until the first service pack comes out before moving to this version? EDIT I have been using Delphi 2010 for a few months and it is great. The version of Rave reports (7.7BE) that comes with Delphi 2010 is full of bugs and has made migrating software from Delphi 2006 to Delphi 2010 a nightmare . Rave Reports 8.0BE has just as many bugs 回答1: It seems to be more stable

In a Dunit project and exe version info is disabled, how do I get it back?

℡╲_俬逩灬. 提交于 2019-12-08 17:02:23
问题 Why cant I set a version info in a Dunit Test projet? The checkbox is disabled for this projetct, but not for other projects. See the screenshot: 回答1: You may be missing the {$R *.res} directive in your test project's source. It needs to be in the .dpr or you won't be able to use this feature in the project options. It should be there by default but occasionally it can get screwed up when adding or removing a unit from a project. When this happens it will look like: $R *.res} // notice the

JPK - CryptoAPI RSA 256/ECB/PKCS#1 one time secret password encryption with public key from certificate (solution)

不问归期 提交于 2019-12-08 09:56:52
问题 Polish government (MF - Ministry of Finance) recently implemented SAF-T (Standard Audit File-Tax / pl: JPK - Jednolity Plik Kontrolny). I had much trouble to implement one of the key parts of this solution in the right way. This part is to encrypt user generated password used to encrypt files, sended to Azure Cloud Storage, with RSA 256/ECB/PKCS#1 algorithm from MS CryptoAPI, using public key loaded from certificate file served by the MF. 回答1: My working solution to this is (uses JEDI API