delphi-2009 Questions

7

Solved

How can a desktop application communicate with a Windows service under Vista/Windows2008/Windows7? The application needs to send small strings to the service and receive string responses back. Both...
Adelric asked 11/8, 2009 at 12:58

4

Solved

got a strange problem: I create a TPanele at runtime and change its color - however, the color is still clBtnFace. Here' the code: procedure TForm1.Button1Click(Sender: TObject); var pnlTest : T...
Kauffmann asked 23/9, 2010 at 12:5

5

Solved

How can I achieve a synchronization structure like that: Lock.BeginRead try if Changed then begin Lock.BeginWrite; try Update; finally Lock.EndWrite; end; // ... do some other stuff ... ...
Mussorgsky asked 27/7, 2009 at 10:6

2

Solved

I'm trying to show a custom hint in a TWinControl but I can't figure out how to get it's position. Using position 0,0 shows the hint on the top of my screen (outside the window) so I guess it must...
Hafnium asked 14/11, 2008 at 12:59

7

Solved

I'm trying to build 3 packages, A, B and C. A defines some base classes that are used in B and C. I've got all 3 of them in the same project group, all set up to output to the same custom BPL outpu...
Matronize asked 18/4, 2009 at 19:24

8

Solved

We had the following code prior to Delphi 2009: function MemoryStreamToString(M : TMemoryStream): String; var NewCapacity: Longint; begin if (M.Size = > 0) or (M.Memory = nil) then Result:= ...
Potpourri asked 9/4, 2009 at 3:24

5

Solved

In the process of transforming a given efficient pointer-based hash map implementation into a generic hash map implementation, I stumbled across the following problem: I have a class representing ...
Tauromachy asked 27/4, 2009 at 13:24

3

Solved

I am new to the delphi language, and here I have a doubt, I have a xml file called vehicle.xml. It looks like this <data> <vehicle> <type>Car</type> <model>2005&lt...
Cammi asked 11/11, 2011 at 6:51

4

I need to parse out the values from some data from select boxes. Example: <option value="1">Apple</option><option value="2">Chicken</option> Usage: If option = app...
Mullite asked 29/4, 2010 at 0:7

3

Solved

Delphi part: I have a class with the event and from that event I need to call a procedure passing the interfaced object to it. It works fine in Delphi but I have problems with declaring it in Pasc...
Daly asked 12/7, 2012 at 14:17

2

Solved

I need to programmatically enter one character into a cell of a Delphi grid (in other application). In order to do this manually, following steps are required: Press the F3 button. Press the rig...
Foregone asked 18/10, 2012 at 9:4

5

Solved

I have TBytes variable with a value [0,0,15,15]. How can I convert it to "00FF" ? I dont want to use loops, bcoz this logic to be used in time intensive function. (I tried using BinToHex, but I c...
Issuance asked 29/6, 2009 at 20:25

12

Solved

I kept my hands off Delphi for too long, I guess; busied myself with Java and PHP a lot over the last couple of years. Now, when I got back to doing a little Delphi job, I realised I really miss th...
Kentigera asked 21/1, 2010 at 10:59

5

Solved

Delphi 2009 sets the default file format for new source code files to ANSI, this makes the source code platform-dependent. Even for a new XSD file created in the IDE, which by default starts with ...
Balky asked 15/11, 2009 at 0:21

3

Solved

I have a fixed constant array constAry1: array [1..10] of byte = (1,2,3,4,5,6,7,8,9,10); and a dynamic array dynAry1: array of byte; What is the easiest way to copy the values from constAry1 ...
Dunker asked 11/6, 2009 at 17:7

3

Solved

how can i see how much of the stack space is currently used in my delphi app? i had a very strange error that sounds like stack trouble. i'd like to add it to my app's log to get some idea how much...
Keratinize asked 29/4, 2010 at 23:46

1

Solved

I don't know if this is a bug or something, but if I try to disable a TTreeView control, all the nodes become selected (grayed out)... Can anything be done to just disable the input for this contro...
Bondage asked 6/12, 2019 at 16:1

2

Solved

Trying to use the below mentioned approach to get more details about the locked file. Is file in use function GetFileInUseInfo(const FileName : WideString) : IFileIsInUse; var ROT : IRunningObj...
Involuted asked 11/2, 2013 at 14:55

4

Is there a step-by-step guide for updating the Indy 10 components in Delphi 2009? I've read the uninstalling thread and have the latest build (IndyTiburon.zip). However there appears to be n...
Thurmanthurmann asked 31/5, 2009 at 5:21

3

Solved

function GetDesktopFolder: string; var buf: array[0..MAX_PATH] of Char; pidList: PItemIDList; begin Result := StrNoDesktopFolderFo; SHGetSpecialFolderLocation(Application.Handle, CSIDL_DESKTOP,...
Degenerate asked 9/10, 2011 at 14:39

8

Solved

I use DirectoryExists (const PathName : String); to check if a directory is reachable from a computer or not. But if the directory does not exist and the path name is a network path, i.e. \\com...
Sidoney asked 17/9, 2009 at 13:33

3

Solved

I need to write a component which will register in self other components and will detect if one of the registered components receive focus. For example for my component TFocusObserver I am registe...
Heurlin asked 25/6, 2012 at 11:40

4

Solved

I've got a form with a large TImage on it as a background. Problem is, this is stored directly in the DFM as a bitmap, which takes up about 3 MB. The original PNG file is ~250K. I'd like to try to ...
Shipp asked 20/7, 2009 at 12:51

7

Solved

My Server-App uses a TIdTCPServer, several Client apps use TIdTCPClients to connect to the server (all computers are in the same LAN). Some of the clients only need to contact the server every co...
Semiliterate asked 17/2, 2011 at 16:33

2

Solved

i tried to use the openDialog in new thread but it made so strange behavior .. if i put the if opendialog.execute then in the create constructor like this : constructor TChatMemberThread.Create(N...

© 2022 - 2024 — McMap. All rights reserved.