delphi-2009

Tools which can parse Delphi XMLDoc format and build online help

爱⌒轻易说出口 提交于 2019-12-03 04:04:39
The XMLDoc tool for API documentation is explained here: http://edn.embarcadero.com/article/32770 Are there any free or commercial tools which can be used to create documentation based on Delphi's XML doc format? Is there a newer version of the 'getting started' documentation? This page refers to Delphi 2005 and third party tools, some of them seem to have moved. The XMLDoc for Delphi 2005 required Python (tested with Python 2.3) Instant Saxon (tested with Instant Saxon 6.5.3) The Java SDK (tested with J2SE v 1.4.2_05 SDK) and also the Visual Studio Help Integration Kit Check out: Help and

Class Helper for generic class?

陌路散爱 提交于 2019-12-03 03:15:03
I'm using Delphi 2009. Is it possible to write a class helper for a generic class, i.e. for TQueue . The obvious TQueueHelper <T> = class helper of TQueue <T> ... end; does not work, nor does TQueueHelper = class helper of TQueue ... end; As documented in the Delphi help, class helpers are not designed for general purpose use and they are incorrectly perceived as having a number of limitations or even bugs as a result. nevertheless there is a perception - incorrect and dangerous in my view - that these are a legitimate tool in the general purpose "toolkit". I have blogged about why this is

How to properly access query-results created in background thread?

非 Y 不嫁゛ 提交于 2019-12-03 01:32:36
I want to execute a database query in a background thread. The OmniThread library will help me with all the thread stuff, but there is one thing I don't understand so far: Every thread needs a separate database connection. The background thread therefore creates the DB connection, creates the query and then executes it. Now I could access the query results using the query object of the background thread. But after the query is executed, I want to access the query results in the main thread. If I just refer to the background-thread query object, does this cause problems because I am accessing a

Problem with setting Browsing Path in Delphi option page

二次信任 提交于 2019-12-02 23:43:22
I have a problem with setting Browsing Path in Delphi 2009: When I install a new component, I add DCU path to Delphi's Library Path, and source path to Delphi's Browsing Path. The application compiles fine, but holding Ctrl and clicking on any of the unit names for that component does not open the source file! It seems the only way to make it work is to add source path to Library Path, but this means I have to compile all the units belonging to third-party components every time I build my project! This problem does not exist for Delphi's standard units, or even JCL and JVCL units which are

Advice on moving to a multi tier Delphi architecture

眉间皱痕 提交于 2019-12-02 22:22:39
We have a relatively large application that is strongly tied into Firebird (stored procedures, views etc). We are now getting a lot of requests to support additional databases and we would also like to move a lot of the functionality from the client to the server. Now seems like a good time to move to a 3(4) tier architecture. We have already looked at DataSnap 2009 and RemObjects SDK/DataAbstract. Both seem like they would do the job, but are there any advantages/disadvantages we should look out for? Are there any other frameworks that you could recommend? Cheers, Paul In the process of

Convert string to PAnsiChar in Delphi 2009

寵の児 提交于 2019-12-02 19:05:39
I'm converting my applications to Delphi 2009 and faced an intriguing issue with some calls that need to convert a string (wide) to AnsiString. Here's an example to demonstrate the issue I'm having: var s: PAnsiChar; ... s := PAnsiChar(Application.ExeName); With Delphi 2007 and previous versions, s := PChar(Application.ExeName) would return the application exe path. with Delphi 2009, s := PAnsiChar(Application.ExeName) returns only 'E'. My guess is that's because I'm converting a unicode string to an ansi string but how can I convert it so that a PAnsiChar gets the full string? Toon Krijthe I

Fade all other windows of an application when a dialog is shown?

本秂侑毒 提交于 2019-12-02 16:00:26
How to dim / fade all other windows of an application in Delphi 2009. Form has an AlphaBlend property, but it controls only transparency level. But it would be nice if we can have something like this (Concentrated window) . Even stackoverflow.com does that, when we try to insert a link/ image etc in the post. How can we achieve this in a delphi application? Here is a unit I just knocked together for you. To use this unit drop a TApplication component on your main form and in the OnModalBegin call _GrayForms and then in the OnModalEnd call the _NormalForms method. This is a very simple example

error in Delphi loadlibrary()

北城余情 提交于 2019-12-01 21:17:00
i have given a chance to my software user to select dll from openfile dialog.(so my user can download dlls form my website and use it with the main project ). everything is working fine and it can even find that dlls is provided by me or selected an invalid dll.but the problem raises if the user selects a renamed file(eg : apple.txt file renamed to apple.dll ). i typed the code like this try dllHandle := LoadLibrary( pwidechar(openfiledialog1.filename)) ; catch { showmessage if it is not a dll (but it can be any dll, it checks this is my dll or 3rd party later )} end; error message shown by

Delphi 2010 and Dbexpress deploy

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-01 17:43:37
问题 How on Earth to deploy a Delphi 2009 /2010 app that connects to a remote mysql using dbexpress? What files to include? Thanks 回答1: You need dbexpress driver for MySQL (dbxmys.dll), and MySQL client library which is a single DLL (libmySQL.dll). In Delphi 2009, there is a bug (I'm not sure if it is fixed by any update), which makes you deploy dbxdrivers.ini and dbxconnections.ini files with your application too; otherwise you will get a runtime error on the target machine. There are a few

Is it possible to use WIndows Speech Recognition Engine in a word pronunciation game?

孤人 提交于 2019-12-01 09:28:17
I use to create an application that uses the windows speech recognition engine or the SAPI. its like a game for pronunciation that it give you score when you pronounce it correctly. but when i started experiments with SAPI, it has poor recognition unless if you load a grammar on it (XML) its give best recognition result. but the problem now is closest pronunciation from the input text will be recognize. for example: Database -> dedebase -> correct. even if you mispronounce it. it gives you correct answers. without using the xml grammar when you say database it give you "in the base/the base