delphi

Is it possible to deploy a native Delphi application with ClickOnce

Is it possible to deploy a native Delphi application with ClickOnce without a stub C# exe that would be used to launch the Delphi application? The same question applies to VB6, C++ and other native Windows applications. ...

HelpInsight documentation in Delphi 2007

I am using D2007 and am trying to document my source code, using the HelpInsight feature (provided since D2005). I am mainly interested in getting the HelpInsight tool-tips working. From various Web-surfing and experimentation I have found the following: Using the triple slash (///) comment style works more often than the other docum...

Does Delphi call inherited on overridden procedures if there is no explicit call

Does Delphi call inherited on overridden procedures if there is no explicit call in the code ie (inherited;), I have the following structure (from super to sub class) TForm >> TBaseForm >> TAnyOtherForm All the forms in the project will be derived from TBaseForm, as this will have all the standard set-up and destructive parts that are ...

Reintroducing functions in Delphi

Does anyone know what the motivation was for having the reintroduce keyword in Delphi? If you have a child class that contains a function with the same name as a virtual function in the parent class and it is not declared with the override modifier then it is a compile error. Adding the reintroduce modifier in such situations fixes the...

How do you implement Levenshtein distance in Delphi?

I'm posting this in the spirit of answering your own questions. The question I had was: How can I implement the Levenshtein algorithm for calculating edit-distance between two strings, as described here, in Delphi? Just a note on performance: This thing is very fast. On my desktop (2.33 Ghz dual-core, 2GB ram, WinXP), I can run throug...

Learning Delphi

I was asked in my current job to learn Delphi 2006. I received a couple of old books Essential Pascal and Essential Delphi, but I don't think they are of the highest quality (I'm currently reading Essential Pascal and its not good). Since Delphi is an old technology (the latest book on the subject was written in 2006 in Amazon), I was wo...

Delphi Network programming

I have a classic client/server (fat client and database) program written in Delphi 2006. When certain conditions are met in the client, I need to notify all the other clients very quickly. Up until now this has been done using UDP broadcasts, but this is no longer viable as clients now connect from outside the LAN and the UDP broadcast i...

How do I hash a string with Delphi?

What hash algorithms does Delphi support? ...

What tools exist to convert a Delphi 7 application to C# and the .Net framework?

I maintain an old PC-only application written in Delphi 7. Although Delphi has served me very well in the past I now only use it for this one application and find my skills with the language diminishing. Its syntax is too different from my 'day job' languages of Java/Ruby so it takes me longer to get into the groove of writing new code, ...

How to disable a warning in Delphi about "return value ... might be undefined"?

I have a function that gives me the following warning: [DCC Warning] filename.pas(6939): W1035 Return value of function 'function' might be undefined The function, however, is clean, small, and does have a known, expected, return value. The first statement in the function is: Result := ''; and there is no local variable or parameter...

How can I find the current DNS server?

I'm using Delphi and need to get the current Windows DNS server IP address so I can do a lookup. What function should I call to find it? The only solution I have right now does an ipconfig/all to get it, which is horrible. ...

How to save jpg image to database and then load it in Delphi using FIBplus and TImage?

How to save jpg image to database and then load it in Delphi using FIBplus and TImage? ...

Rendering SVG and Delphi

What are options to import and render SVG images with Delphi (Win32)? "Interactive" component would be big advantage, I'd like to be able to modify the SVG image dynamically (change colors, line widths, texts) and get events when user clicks the image. ...

How create threads under Python for Delphi

I'm hosting Python script with Python for Delphi components inside my Delphi application. I'd like to create background tasks which keep running by script. Is it possible to create threads which keep running even if the script execution ends (but not the host process, which keeps going on). I've noticed that the program gets stuck if t...

What is the best set of tools to develop Win32 Delphi applications?

What is the best set of development tools to develop Win32 Delphi applications? Include support tools such as automated build servers and modelling software. It would be interesting to get a list of the best tools for Delphi development so please provide a brief description of the tool, state why you use it, why you selected it over alte...

Is there a Delphi/FreePascal BitTorrent library?

I'm doing a feed reader type of application for torrents. Something to give you a sound when it's sitting in the tray and a new torrent shows up on one of your categories of choice. This will be done in Delphi or FreePascal when it's solid. My question is due to the possible need to integrate a BT client in the future. ...

How to fix the endless printing loop bug in Nevrona Rave

Nevrona Designs' Rave Reports is a Report Engine for use by Embarcadero's Delphi IDE. This is what I call the Rave Endless Loop bug. In Rave Reports version 6.5.0 (VCL10) that comes bundled with Delphi 2006, there is a nortorious bug that plagues many Rave report developers. If you have a non-empty dataset, and the data rows for this da...

How do you unit-test code that interacts with and instantiates third-party COM objects?

One of the biggest issues currently holding me back from diving full steam into unit testing is that a really large percentage of the code I write is heavily dependent on third-party COM objects from different sources that also tend to interact with each other (I'm writing add-ins for Microsoft Office using several helper libraries if yo...

What's wrong with Delphi's "with"

I've heard many programmers, particularly Delphi programmers scorn the use of 'with'. I thought it made programs run faster (only one reference to parent object) and that it was easier to read the code if used sensibly (less than a dozen lines of code and no nesting). Here's an example: procedure TBitmap32.FillRectS(const ARect: TRect...

Class/Static Constants in Delphi

In Delphi, I want to be able to create an private object that's associated with a class, and access it from all instances of that class. In Java, I'd use: public class MyObject { private static final MySharedObject mySharedObjectInstance = new MySharedObject(); } Or, if MySharedObject needed more complicated initialization, in Ja...