delphi

Delphi Delete TNode, incompatible type TNodePtr.

I have a binary tree class that is created with a root node and nodes can be added to it as needed in the code, however I am having trouble in deleting the nodes because I point to them with TNodePtr and it is an incompatible type with TNode. At the moment I have this recursive method of deleing nodes which should work once the incompati...

Exist a tool to convert DFM files to sourcecode?

I'm porting a app to FreePasal/Lazarus & found that their form converter is not good. I have a small utility app, and each time I do a change I need to reconvert, relayout and reimport graphics. Plus, some things are messed up. I wonder if exist a automatic tool for convert the DFM files to delphi sourcecode, so I can do this more easil...

Delphi layout manager/ form builder opensource?

I'm aware of the excellent DevExpress LayoutManager & the half-attempts included in new releases of Delphi. But I wonder whether an Open Source layout manager does exist, that can be used to replace the form editor. I built a small version for my iPhone app in Obj-C that can do: Form.Add(TEXT_EDIT,Options,LEFT) The idea is to be abl...

What are the MSBuild project level properties for Delphi?

The Delphi documentation for MSBuild says /property:name=value sets or overrides project-level properties, where name is the property name and value is the property value. Use a semicolon or a comma to separate multiple properties, or specify each property separately. /p is also acceptable. For example: /property:Wa...

Failed to extract files from Delphi resource file

I have been using FindResource, LoadResource and LockResource to access resources in a res file. I have a wave file which I want extract and play through my Delphi application. I have done it without extraction, but it's not the thing I want to do. I want to first extract the wave file. Can anyone point me to the right solution? ...

How to prevent action in parent form executing when child form is visible in Delphi

I have a main form, and a floating child form that is non-modal. The main form has a TAction called DeleteAction that has Delete as it's shortcut. When the floating form is visible and Delete is pressed, the main form's DeleteAction is executed. How do I prevent the shortcut passing through the child form to the parent? I could verif...

How to sort GUID's the SQL Server way using Delphi

In a project I am working on it would be nice if I can sort an in memory list of guids and compare against a SQL server table ordered by these same guids. Unfortunately when an ordered list is returned by SQL Server, the order is not immediately apparent. What would be the best way to sort this in memory list so that the order is the ...

can I connect to mysql database located on a web hosting server?

Hi I want to connect to mySQL database which is located in a web-server (siteground) which is a web hosting company.. can this be achieved , is there a port to connect to the mysql database like (3306). if not , are there any servers online where this can be achieved? PS: I'm using Delphi, and I'm using mysql locally using odbc. ...

Terminate an inactive socket connection from TIdTCPServer

We have an application which listens for incoming TCP requests using the Indy 10.1.1 components that ship with Delphi 2007. Occassionally we receive incoming connections which are not from our client application. Typically, one of two things happens: 1) the connection is terminated by the client before any data is received, or 2) data i...

How to programmatically control the volume of my pc?

I have a keyboard without music keys, that for turn up and down the volume, play, stop, etc. of music in my PC. If you don't understand, this is my keyboard and this isn't. I want to implement, in Windows and in Delphi or C#, a keyboard hook to create the volume feature in my keyboard, but I don't know how to turn up and down it by code...

Delphi TRichEdit Set background shape as rounded edge rectangle

My problem is to set the background shape to something like rounded edge rectangle. The fact that when you put background color on the text on TRichedit, the background shape would be a rectangle, not rounded edge. I would like to put some sample image but I don't know how. ...

Delphi and enum

Has Delphi analog of enum in C? ...

Implementing OAuth Provider in Delphi

I've developed a REST web service and I want to implement an OAuth Service Provider for authenticating, primarily, two-legged OAuth requests. Could anyone please point me to an implementation of an OAuth Service Provider created in Delphi. Thanks in advance. ...

Delphi indy10 http server and ExtJS form submit

I have a problem I don't know how to solve. I have an Indy10 HTTP server. I have used both Indy9 and Indy10 HTTP servers in many applications and never had any problems. But now I am using Indy10 HTTP server with ExtJS javascript RAI framework. The problem is when I submit data that contains non-ansi characters. For instance when I su...

Updating joined queries with ADO

Hi I have a select query that joins 3 tables to display information. If I want to update a field is do ADOQuery.Edit. <Set fields Values> ADOQuery.Post. I get the following error howwever 'Insufficient key column information for updating or refresing' and I'm not sure how to proceed. Thank you. Pieter ...

how to move circle with mouse in delphi?

how to move circle with mouse in delphi? circle:Shape; ...

Delphi project testing via TestComplete 7 on FinalBuilder

We've been using FinalBuilder as a continuous integration server for our Delphi project. Currently, we have our builds automatically triggered from subversion check-ins, dUnit tests run after the unit test executable is built and AQtime generating test coverage statistics while the unit test executable is run. Our next goal is to g...

Delphi - Proper way to page though data.

...

Cast int to Enum in Delphi Prism

Basically the same as this question, but in Delphi Prism: http://stackoverflow.com/questions/29482/cast-int-to-enum-in-c I manage to do it from a string: YourEnum := Enum.Parse(TypeOf(YourEnum), "mystr") as YourEnum But I tried the following, and get a type mismatch error: YourEnum := 3 as YourNum Any ideas what the syntax is for...

Firebird 2.1 + EXISTS = query bug?

Using Delphi 2009 + Firebird 2.1.3. Database is ODS 11.1, default char set is UTF8. My prepared query is as follows: SELECT a.po_id, a.po_no FROM purchase_order a WHERE EXISTS (SELECT 1 FROM sales_order_item z1 JOIN purchase_order_item z2 ON z2.so_item_id = z1.so_item_id AND z2.po_id = a...