delphi

Is there any way to get Delphi to read other debug formats?

When I'm debugging something in Delphi and there's a system library in the stack trace, I've got the name of the library and the function that's being called into. Unfortunately, this doesn't seem to apply to any other external DLLs. I've got one that was compiled in Visual C++ 2005, and any time it gives me any sort of trouble, I have...

Elegant way for handling this string issue. (Unicode-PAnsiString issue)

Consider the following scenario: type PStructureForSomeCDLL = ^TStructureForSomeCDLL; TStructureForSomeCDLL = record pName: PAnsiChar; end function FillStructureForDLL: PStructureForSomeDLL; begin New(Result); // Result.pName := PAnsiChar(SomeObject.SomeString); // Old D7 code working all right Result.pName := Utf8ToAnsi(UTF...

DBCtrlGrid with a Lookup ComboBox

has anyone managed to get a DBLookupComboBox to work with a DBCtrlGrid? a pre filled in DBComboBox works ok, but it dose not work to well for lookup tables; delphi 7 ...

Lock-Free, Wait-Free and Wait-freedom algorithms for non-blocking multi-thread synchronization.

In multi thread programming we can find different terms for data transfer synchronization between two or more threads/tasks. When exactly we can say that some algorithm is: 1)Lock-Free 2)Wait-Free 3)Wait-Freedom I understand what means Lock-free but when we can say that some synchronization algorithm is Wait-Free or Wait-Freedom? I ...

How to make control invisible but responsive to mouse events?

I want to create a control (derived from TCustomControl) that is invisible but reacts to normal events (I want to use it to show a hint when moving the mouse over a custom element). I thought overriding the paint method and leaving it empty would do the job but unfortunately a rectangle is drawn where the component is. How can I make th...

Best way of validating modal dialog fields?

I often need to have modal dialogs for editing properties or application configuration settings, but I'm never really happy about how to validate these, and present the validation results to the user. Choices and tools are typically:- Design UI so that invalid choices are simply impossible - i.e. use "mask edits", range limits on spin...

How can I make my form resize more smoothly?

When resizing a form with many controls, the form looks bad because of flickering. What are some tips to have a smoother form resizing? ...

simple VirtualFilesystem for delphi - must be FREE!

Hi, my application stores infos about some files analyzed in given directory... it produces one file for each file found in a directory, so it could be any number ... I need to store those produced files separately, but it's not the best idea to put them like it is ... so I'm looking for some virtual filesystem, which would allow me to k...

How do I run a command-line program in Delphi?

I need to execute a Windows "find" command from a Delphi software. I've tried to use the ShellExecute command, but it doesn't seem to work. In C, I'd use the system procedure, but here... I don't know. I'd like to do something like this: System('find "320" in.txt > out.txt'); Edit : Thanks for the answer :) I was trying to run 'Find' ...

How to create Chrome like application in Delphi which runs multiple processes inside one Window?

Is it possible to create an "application group" which would run under one window, but in separate processes, like in Chrome browser? I'd like to divide one application into multiple parts, so that one crashing or jamming process cannot take down others, but still keep the look and feel as close to original system as possible. I know the...

app using TIdFTP not migrating from Delphi 5 to Delphi 2009...corrupt uploads

i wrote a Delphi 5 app that uses TIdFTP. it's been working great for years. it's only purpose is to upload an excel file. object ftp: TIdFTP OnStatus = ftpStatus IPVersion = Id_IPv4 AutoLogin = True Host = 'somewhere.ca' Passive = True Password = 'guess' TransferType = ftBinary Username = 'xray' ProxySettings.ProxyTy...

exception EInoutError in the Data Module at 000C50BC I/O Error 103

I was running an application in Delphi4 and then I got the error Exception EInoutError in the Data Module at 000C50BC I/O Error 103 I basically ...could not make head or tails of it....i was not able to open/run the .exe file through the Delphi GUI but was able to run it. Kindly help. { *************************************...

Are there any open source word processors made with Delphi?

If you know of one, I'd love to learn about it. Thanks, as always -- Al C. ...

VCL for Web skins/themes ?

Hi All, Has anyone created a skin/theme wrapper for Intraweb/VCL for Web ? The default look of the grids etc are very dated.. Any info appreciated.. Thanks ...

Retrieving ADO errors using Delphi

I'm using Delphi 2007 with ADO to access a MS SQL 2008 database. A stored procedure on the database prevalidates the input and if the validation fails it returns an error result set (containing custom error info). Uisng the SQL Server Management Studio, when I run the stored proc I get the custom error result set in one tab and the nat...

Migrate to Delphi 2009 - Invalid Typecast problem

I'm converting GraphicEx project to Delphi 2009. I have trouble in converting following procedure in unit Scanf_c.pas. Here is the problem: With TscRec(FType) do begin FType is an integer and TscRec is defined: TscRec = packed record // Has size of an integer Case byte of 0: ( Typ : byte; Size : char; Flags : word...

Need to open and write a DBASE4 table. Which Delphi route please?

I've a need to open and append a DBASE4 table with Delphi (7 and 2009/10). Presently it is done using home-rolled code. I presume this task is easy with Delphi, but which link mechanism should I use? I understand that the BDE is old and less supported now, but I dont want additional DLL's and support files if possible. I'm using the prof...

Showing MDI form as modal

This will sound against the nature of MDI.. I need to show a MDI form (FormStyle=fsMdiChild) as modal sometimes. And I also need to access the part between Application.CreateForm and OnShow event of another MDI form, i.e. Application.CreateForm(Form2,TForm2); // but don't set form2's visible property true. Form2.caption:='not working...

Delphi to java, soap delphi, sms send

I am working on a code which I need to send sms messages from a sms service provider they get me delphy program that can send a sms from their service but i dont know delphy and i should change this code to java Can anyboddy guide me that how can i change this code? I think this is a soap service // *********************************...

Optional parameters in Active X libraries

I am creating an ActiveX library in Delphi in which a particular object has a property called DevelopmentCount with a single parameter of type date. Internally the property getter calls a similarly named function on a normal Delphi object where the single parameter is optional (this last factor may be irrelevant). When we compile this l...