ShowMessage(TRttiContext.Create.GetType(TStringList)
.GetProperty('Strings').ToString);
Above code fails as .GetProperty returns nil on properties like "Strings", "Objects", "Values" (ones with indexers). I assume this is a known limitation and the question is if there's any way to access those indexed properties (preferably with...
What is a good library for creating PDFs in Delphi 2010?
Pre Unicode I used PowerPDF, which though obsolete, was flexible enough to do what I wanted to do (very customized non-db/table based reports)
I currently have PowerPDF compiling in Delphi 2010, but not yet working, and I'd rather not port and debug if there are any good Open Sou...
I want to implement interruptable tasks based on background threads. What is the cleanest way to implement the TTask.Stop method? How can I abort the background thread?
The code executed within the thread context is passed to the task using an anonymous method and can contain blocking calls, so I can't rely on the fact, that the Termina...
I need to find out whether my apps are being flagged as viruses by the most popular anti-virus packages (not best, but biggest by user base). I therefore would like to know how others go about this. Some background:
I have an application written in Delphi. Ever since the Delphi virus was found, I've had problems with false positives on ...
Hello,
How can I get 'connected usb info'(device instance id, driver key name ..) from Registry in Vista or Windows 7 by using delphi?
Where is this information in Windows Registry?
I have a code it's working on XP but not in Vista.(code: http://www.delphipraxis.net/post991546.html)
Why the code is not working on Vista?
I'm really stack...
In my application I use TADOQuery with select (MSSQL) and linked with it TClientDataSet. I have to insert about million records and ApplyUpdates.
So what I see in the SQL Server Profiler? I see that for each inserted row we have 3 queries: sp_prepare of insert script, sp_execute it with some values and sp_unprepare.
I want just to prep...
Hi
I need loging all HTTP request (from any application).
I have Delphi 7.0.
Anybody know how do that?
...
When you create a type library in Delphi and create an interface and the associated CoClass, Delphi also creates matching dispinterface declarations.
My understanding is that these relate to the fact that my interface derives from IDispatch, but I thought that TAutoObject implements everything needed for IDispatch. So my question is thr...
Hi,
I have started using of generics in Delphi 2010 but I have a problem when compiling this piece of code:
TThreadBase = class( TThread )
...
end;
TThreadBaseList<T: TThreadBase> = class( TObjectList<T> )
...
end;
TDataProviderThread = class( TThreadBase )
...
end;
TDataCore = class( TInterfacedObject, IDataCore )
private
FProvid...
Who or what inserts the Unicode, right-to-left and IME items at the foot of the default right-click popup menu in Delphi 2010 VCL applications? I would like to remove them for user environments where they are unlikely ever to be needed, without having to define a custom pop-up menu for every edit and memo. Most of the time only copy, c...
Is there any specific purpose for the 'Tag' property of Delphi VCL components?
I have Googled a few examples using it as, for example, a 'color' property or using the value as a pointer address, but is it 'good practice' to use it, or is it considered 'bad practice' as it ties the program logic to the UI?
...
hi all
Is there any way to assign more memory for a Memo or RichEdit (if working with big files)
thanks
...
hey all
In my tlistview all lines caption and subitem[0] filled with some data , and i want to fill other subitems line by line after all stored in caption and subitem .
Example
my listview is like this
user pass working status valid
data1 pass --- ---
data2 pass2 ---- -----
-
-
-
I loaded t...
In my program, I process millions of strings that have a special character, e.g. "|" to separate tokens within each string. I have a function to return the n'th token, and this is it:
function GetTok(const Line: string; const Delim: string; const TokenNum: Byte): string;
{ LK Feb 12, 2007 - This function has been optimized as best as po...
I'm in the early stages of converting an older application and I'm trying to figure out the best way to implement multilingual support. I will be using Delphi 2010.
For example if I wanted to support English and Spanish (with other languages in the future). Should I use a database to to store all the form elements such as Menus, Buttons...
With Delphi I wrote a DLL which can be called from Java via JNA (Java Native Access). Methods in this DLL are just simple operations, but for future use and more complex invocations I would like to know how I can use the Delphi debugger, if the DLL is called from Java directly (or from the Java IDE).
...
I'm using 2010 Enterprise, so I have all the modeling tools available. But I still seldom use them. I write the objects myself, setters, getters... I want to start using modeling besides class diagrams. Should I opt for Delphi's own implementation or perhaps try MMX. What other features does it bring to the table?
Thnx.
...
What is the best practice for returning simple objects from functions / procedures in delphi?
eg. 2 kinds of code:
pass created object as reference, populate object in Proc, destroy it afterwards
procedure Proc(var Obj: TMyObject);
begin
// populate Obj
end;
O := TMyObject.Create;
try
Proc(O);
// manipulate populated object
fin...
Hi! Sorry for my english, but i hope you'll understand me :P
I'm trying to create new TSQLQuery component in code, without placing it on form. I wrote that code:
var
sql:tsqlquery;
pole:TFMTBCDField;
....
sql:=tsqlquery.Create(self);
sql.SQLConnection:=ddm.konekszyn;
sql.SQL.Text:='SELECT COUNT(idrap) FROM raporty WHERE idkie...
Hello,
I am upgrading a project from Delphi 2009 to D2010 and came across the following Internal Error
[DCC Fatal Error] frm_Test.pas(381):
F2084 Internal Error: C15700
when calling
(ILocalizable(TMyProgram.MainForm.AbilitiesForm)).Localize('c:\test.txt');
Here are the definitions:
ILocalizable = interface
['{4DF36053-2651...