delphi

RAD tool for Mac OS X. Is there any ?

I wonder if there is any RAD tool for Mac OS X. Something like Delphi for Windows. ...

Delphi: Declaration of LONG_PTR, WNDPROC

Hello. Can you please tell me HOW the following symbols are declared in Windows.pas for newer Delphi versions? LONG_PTR = ? WNDPROC = ? I want that my code is compatible with Delphi 2006 and I do not just want to write "Integer" or "Pointer", instead the "correct" and official declaration. Can you please also tell me in which Delph...

delphi 7 timer reset

How could one reset the TTimer1 so even ontimer triggers, and the count restarted? The Question is for Design Time command to act on Run-time. ...

Custom Control Creation in Delphi

i used to this on a form and create it like 10 times, that was ok, until i tried to pass this number, it started eating system resources, is there anyway i could create a component like this? it for a Simulator project, 8bits needed to indicate the value of the register in binary any help, comments, ideas are really appreciated. ty. ...

Soap Envelope Header in Delphi 7 not including utf-8 encoding. How can I modify it?

I'm having problems receiving invalid non-ascii characters coming from a Delphi 7 client sending a utf-8 encoded XML to a C# WebService in a String parameter. With a .Net client, the characters are received without a problem. I've tried a lot of stuff, and nothing seemed to work, so I decided to trace the SOAP conversation with Wireshark...

How to get list of ports which are in use at server from Delphi

I need to deal with the result of a command line like this: netstat -aon in Delphi, parse it and get to know all the ports already in use. Is there a library or component around that does that? ...

How do I configure IIS 7 to allow a remote database connection from within an ISAPI Web Server

I have a native Web service application (ISAPI) that I have built with Delphi 2010. At this time, it only exposes two methods. The first one, EchoString, is designed to give me feedback that the Web service is functioning properly, and it adds a couple characters to the string that I send to it from my Delphi Web service client. This alw...

How can I accurately control the positioning of caption of a line from TMS Diagram Studio?

I'm using TMS Diagram Studio. When I add a line (TCustomDiagramLine), it's caption is always in horizontal form. My problem is that if I try to change the orientation of the line, it's caption overlaps itself causing unreadability. I tried setting the left and top property of the caption basing on the position of the center point of the ...

Delphi: Organize RCData into hierarchy way

Hi everyone, The following print screen shows list of resources file embedded into the package. Is it possible to organize the highlighted resources (SE_BUG...SY_VIEW) into hierarchy way ? What i mean here is that can I create a folder call Metadata under the folder RCData and move all the highlighted resources (SE_BUG...SY_VIEW) into t...

Collections with component references and form inheritance

Some time ago I developed a component that had TCollection descendant property and items from this collection contained referenced to the controls on the form. Everything was ok with this component except for inheritance. I don't know about the latest versions of Delphi, but with older ones when a collection is inherited there were two v...

Delphi7: Get attached monitor properties

Hi all How do I get my monitor's properties? I'm mostly interested in the manufacturer name and model type. I also don't want to get it from the registry. (Some PC's like my work PC has restricted access to the property key so I'd rather want to scan a system bus or something other than the reg.) Any ideas? Thanks SoulBlade ...

OpenOffice Automation create chart in calc using Delphi

Hello could someone please help me with the following, I try to create an OpenOffice calc chart using the OOoTools.pas interface. The code is this: /////////////////////////////// CODE ////////////////////////////////// procedure TForm1.ProcessChart(aFilename : String); Var oTheFile, oAllSheets, oMySheet, oCharts, ...

Delphi put Db records into objects list

hello, I want to gets a list of objects from DB, I using a DAO component. I can get one object but now I need getting a list of objects, I'm new in delphy and don't know how to process to get this list. Note that I use delphi 7. this is how I get one record through DAO. // Get persons from DB iNbRecordFound := myPersonDAO.Find(IEn...

Binary Serialized File - Delphi

I am trying to deserialize an old file format that was serialized in Delphi, it uses binary seralization. I know nothing about the structure of the file except some very high level records that are in it. What steps would you take to solve this problem? Any tools etc? ...

How to handle billions of objects without "Outofmemory" error

Hi All, I have an application which may needs to process billions of objects.Each object of is of TRange class type. These ranges are created at different parts of an algorithm which depends on certain conditions and other object properties. As a result, if you have 100 items, you can't directly create the 100th object without creatin...

Unicode string and TStringStream

Hello People, Delphi 2009 and above uses unicode strings for their default string type. To my understanding unicode char is actually 16 bit value or 2 bytes (note: I understand there is possibility of 3 or 4 bytes char, but let's consider the most usual case). However I found that TStringStream is not very reliable to manipulating this...

Place a call using TAPI from Delphi

I need to initiate a call using TAPI from Delphi 2006. I'd like it to be as simple as possible. Any suggestions for a simple component? Is it in JEDI? ...

Is it possible to derive nested class from generic type provided by outer class?

I'd like to create a nested class which is based on the type provided to the outer class. I need the inner class to extend T by some members: TOuterClass<T:class> = class type TNestedClass = class(T) MoreData:Integer; end; end; The compiler says "No" or more specifically [DCC Error] MyUnit.pas(20): E2021 Class type req...

Delphi TButtonEdit buttons appear in one project but disappear in another.

I have a simple form that I use to list the names of all tables in the connected database and allow users to see and edit the data in the tables. This form includes a TButtonEdit control with left and right buttons to set and remove a filter expression typed in by the user. I have included this form in two related projects. It's the s...

Communication between forms and frames

Hi, I've been working on a program in Delphi 2009. It very similar to the program "Mimics" by materialise, where you can create and manipulate 3D meshes. There are 4 panels with different aspects for viewing a 3D object (XY,YZ,XZ, and 3D perspective). Each of the panels is an instance of a custom frame I made for viewing 3D objects. The ...