delphi

Automated Build scripts

How can I increment version in project files for delphi projects.I am using Delphi 10 for win32 application development. I consists of bdsproj, dpr & res files for a project. ...

How can I tell if a Delphi control is currently visible?

I need a way to for a custom control (descended from TCustomControl) to tell if it is currently visible. I'm not talking about the .Visible property; I mean whether or not it's actually being displayed on-screen at the moment. Does anyone know how to do this? ...

How to get around "Binary was not built with debug information"?

I'm trying to debug a C DLL that I'm using with a Delphi program. I built the DLL with Visual C++, with debug information enabled. I built the Delphi program with Delphi 2009, with debug information enabled. But apparently they use different formats, because when I try to attach the VC++ debugger to my program, it says "binary was not...

Delphi - How to Listen and Handle WMDeviceChange Messages while a task is executing?

I ran into the problem that two drives connected at nearly the same time can't be processed. I've actually fixed the old scsi way of getting the drive model but I have a feeling I'm about to run into this same problem. It appears that if a task is executing, such as the one I have checking if the drive is a particular device and unfort...

AV When using a Procedure from one Component called by another

Im not sure if i have explaned this the best i can but, here we go... I have 2 Custom components on a form, Which are link together at design time through the IDE. Whenever i call a procedure from on of the Component i get the Access violation, Access violation at address 0049A614 in module 'Project2.exe'. Read of address 00000...

D2007 ClientDataset

Hello I would like to know whether it is feasible to use a ClientDataset with data-aware controls, when adding or editing an Interbase record. My intention is to open just a single record initially, using a SQLDataset, but I was hopeful that I could load that record into a Clientdataset, then clone the dataset when it came time to appe...

Compiler Hint: "Inline function '...' has not been expanded..."

In a unit I use the function DeleteFile and the compiler outputs a hint: "H2443 Inline function 'DeleteFile' has not been expanded because unit 'Windows' is not specified in USES list" In Uses there is SysUtils, which defines DeleteFile (although internally calling Windows.DeleteFile). What does this hint mean? If I put Windows in...

Capturing F10 in Delphi

I'm trying to capture the F10 key in Delphi, but it seems to keep going to activating the menu because it gets converted from the vk_F10 to vk_menu or something. ...

Does soCaseInsensitive greatly impact performance for a TdxMemIndex on a TdxMemDataset?

I am adding some indexes to my DevExpress TdxMemDataset to improve performance. The TdxMemIndex has SortOptions which include the option for soCaseInsensitive. My data is usually a GUID string, so it is not case sensitive. I am wondering if I am better off just forcing all the data to the same case or if the soCaseInsensitive flag and...

How to add increasing number to saved files in Delphi?

I'm making a program that takes a snapshot of the screen, and saves it to a folder as a Bitmap picture. I seem to be running into a problem though, the picture just overwrites itself. Can anyone tell me how I can make it so when it saves, the number will be one higher than the last? For example: Save 1: Screenshot0001.bmp Save 2: Screen...

Delphi ClientDataset Read-only

I am currently testing with: A SQLConnection which is pointed towards an IB database. A SQLDataset that has a SQLConnection field set to the one above. A DatasetProvider that has the SQLDataset in (2) as its Dataset field value. A ClientDataset, with the ProviderName field pointing to the provider in (3). I use the following meth...

My component crash (TCustomEdit descendant)

Hi, I am trying to create a component like TButtonedEdit of Delphi 2009. It is a custom TEdit that has 2 buttons in the left and right. In my version, I use 2 TSpeedButton objects for the left and right buttons. Please take a look my simple code below. It is ok to install it and I can see it in the component pallete. But, for some u...

How do develop drawing application in delphi

I need to develop an application in Delphi where i have a TDrawGrid control and an image is displayed in the cells of the grid depending upon the kind of layout i select. i draw a line on the canvas of a the cell. the functionality i need to provide is drawing a line, drawing multiple lines on a imgae iside the cell, select any one line ...

DELPHI - help need with a ClientDataSet

Hi I have a ClientDataSet with the following data IDX EVENT BRANCH_ID BRANCH 1 E1 7 B7 2 E2 5 B5 3 E3 7 B7 4 E4 1 B1 5 E5 2 B2 6 E6 7 B7 7 E7 1 B1 I need to transform this data into IDX EVENT BRANCH_ID BRANCH 1 E1 7 B7 2 E2 5 B5 4 E4 1 B1 5 E5 2 B2 The only fields of...

trouble programming with xml files in delphi

Hi I am a beginner programmer tyring to use TXMLparser with Delphi to just read a small xml file so I can understand how they work. I have the following structure in xml file 'parser.xml' ; <rule> <alert>priority 3</alert> <desc> </desc> <action>beep</action> </rule> And I have the following code in delphi VAR Parser : TXml...

JFreeChart-like in Delphi

Hi! I have worked with JFreeChart in a few Java projects. I wonder if there is something similar I can use in Delphi for Win32 or if you know about a nice free chart library for Delphi. I'm working with Delphi 2006. I know there is already TChart but it looks a bit "old". My researchs bring me to TMS Advanced Charts but it's too expensiv...

Programmatically load CSV file into Excel Worksheet (Delphi 7)

I have a large amount of data to insert into an worksheet of an existing Excel workbook. The Excel workbook will have other worksheets containing calculations and a pivot tables. The data may have as many as 60,000 rows and more than 30 columns. This solution must work for both Excel 2003 and Excel 2007. Using the Excel OLE object is wa...

How to consume and re-expose a Win32 type library using Delphi Prism

I currently have a Win32 type library created in Delphi which I need to consume, implement and re-expose via .NET. What are the steps necessary to bring the TLB into Prism so the interface can be implemented? ...

Where can i get free GSM libraries/components for delphi or python?

Guys, Where can i get good free GSM libraries for Delphi or Python? Libraries i can use to send and receive sms's on my application? Gath ...

TSaveDialog position

The default position of TSaveDialog is the center of the screen. How to set the position of the TSaveDialog window? I want something like that: SaveDialog1.top := topValue; SaveDialog1.left := leftValue; if (SaveDialog1.execute(self.handle)) then begin ... end; ...