delphi

xml sample/app settings in xml

hi all can anyone help me to learn how to use XML. As a test i want to use XML instead of INI files for saving a program settings. Thanks ...

SynEdit Problem (Can't Display True Type Fonts Correctly)

I've downloaded a SynEdit version from a Chinese website (with lots of improvements), but as the version on Sourceforge it doesn't support true-type fonts (such as Tahoma); it displays them separated with a space. Anything I can do about this? ...

How can I set a hot key ("win+Key") combination to call an application ?

I need to set a hot key at the operating system level, that once set will call whatever I tell it to call. The hot key set must be done from inside my preference option, but the application must not have to be open so that the hot key works. ...

How can I parse a numeric operation containing +,-,*,/ and parentheses and return the result?

Possible Duplicate: Best algorithm for evaluating a mathematical expression? I mean like when you enter this in Delphi: var i : integer; begin i=5 + 5 + (2 * (3 + 2)) + (1 * 4 + (1 - 3)) end; But I want a command that works in this way: var i : integer; s:string; begin s:='5 + 5 + (2 * (3 + 2)) + (1 * 4 + (1 - 3))'; ...

Should I use ApplyUpdates(0) or ApplyUpdates(-1)?

The Delphi XE dbExpress tutorial in the online documentation uses ApplyUpdates(-1): // Client data set has provider do update. ClientDataSet1.ApplyUpdates(-1); Some online sources however say it would have advantages to use ApplyUpdates(0), and it would be a widespread mistake or bad practice to use -1. Is this true? And when and ...

RAD Studio 2009 Ctrl+Z Buffer Corruption Bug

Now this has happened to me twice this week alone: when I press Ctrl+Z a number of times in RAD Studio 2009, the editor buffer gets corrupted. The current and nearby lines get filled with nonsense data, and sometimes a breakpoint is created (autobugically). And there is a EAccessViolationin the IDE, which then terminates. All unsaved cod...

Common data types: How much bytes are they?

I'd like to know how much bytes a 32-bit integer ASCII character (char in C++?) Pointer (4 bytes?) Short Float Takes up in Delphi, and if it is generally the same in most languages Also, do the data types mentioned above have a constant size? I mean are the integers 0, 4, 123 and 32231 all of the same size? ...

Getting an access to Idispatch member of idispatch interface

Hi people. I am a physicist. I am trying to work on Delphi with an imported activex control (ocx file). Let’s say there are 3 automation interfaces in the library: IGraph, IGraphAxes and IAxis. The structure of the library is such that: ===IGraph’s properties:=== Idispatch* IGraphAxes; ... //other members ===IGraphAxes’ properties:=== ...

How to click on </span> Tag ? (Webbrowser - Delphi)

Hi , how can i click on a "< / span>" tag in a html page ? like this : <span id="_ID_">Hello There</span> Is it possible ? Thanks ...

Delphi Rtti: Explore properties of interfaces?

Is there a way to explore a interface's properties with Rtti? The following code does not work: procedure ExploreProps; var Ctx: TRttiContext; RttiType: TRttiType; RttiProp: TRttiProp; begin RttiType := Ctx.GetType(TypeInfo(IMyInterface)); for RttiProp in RttiType.GetProperties do Writeln(RttiProp.ToString); end; Has an...

Delphi dcu to obj

Is there a way to convert a Delphi .dcu file to an .obj file so that it can be linked using a compiler like GCC? I've not used Delphi for a couple of years but would like to use if for a project again if this is possible. ...

List code without reference

I use Bold for Delphi with D2007. The model is rather big and now I discover we have many methods in the model that are not called. The compiler should give a hint about it but it is quiet. In Delphi the linker remove methods that do not have any reference. It then give a hint on that when compiling. I try to explain how Bold use method...

Help needed coding an IRC client in Delphi 2010 using Indy Components

Im trying to code a basic irc client in Delphi 2010 using Indy components. Im able to connect to my irc server (unrealircd) using sample A below. After connecting I have many procedures that should perform actions when it receives a private message, ping, ctcp, channel modes etc. but they never react to any of these incoming events. Sa...

Validate XML Schema in Delphi received by c# web service as a parameter

I have a C# Web Service that returns a XML as a result that will be consumed by a Delphi 7 application. Normally, I would return a .Net XmlDocument class if I had a .Net client, but, for Delphi, I'm returning a string. Below is the C# Web Service Code: public String ReturnXML() { XmlDocument xmlDoc = GenerateXmlMethod(); String ...

Delphi 2010: Advantage of running multi threads if cannot allocate memory to create object for calculation in each thread

Hi everyone, My Previous Question From the above answer, means if in my threads has create objects, i will face memory allocation/deallocation bottleneck, thus result running threads may slower or no obvious time taken diff. than no thread. What's the advantages of running multi threads in the application if I cannot allocate memory to...

MouseWheelDown event fires multiple times in succession

Delphi 7 on Windows 7 I want to scroll down a list (TElTree) using the mouse wheel... so I start writing some code in the ElTree's OnMouseWheelDown event. Then I notice that it's scrolling 2 rows at once. The mouse wheel settings in Control Panel are set to scroll only 1 line at a time. If I place a breakpoint inside the event handler, ...

Supporting Delphi 7 apps in D2006 / D2009

I started occupational programming with Delphi when the Turbos came out , and have licenses for Delphi 2006 Turbo Pro and Delphi 2009 Professional. I have been asked to support another in-house tool, written by another occupational programmer, who has since retired. It's a Windows program, but it was developed with Delphi 6 using the CL...

How To Get An Unique ID?

How can i get an unique id from one of installed hardwares? Something like h.d.d serial or motherboard, ....? Thanks...

Delphi OpenDialog without letting the user navigate away from the inital dir

Hello, I am trying to create an open dialog (in Windows 7) where the user is confined to the initial directory. On the open dialog I have set the optionsEX to [ofExNoPlacesBar] and that removes the bar that would let them select folders and directories to go to quickly but the user can use the bread crumb address tool to go up a le...

Reading Inifile to Stringlist problem spaces problem

I am using the inifile to store values which I use to replace other values in a file for example A with B A=B which works fine however if I a space before the value B this is Ignored when reading in EG A= B is still read in as just 'B' rather than ' B', does anyone have any idea how I can work fix this, I am using Delphi 7 so I cannot us...