delphi-7 Questions

1

Solved

After a lot of searching I thought Indy TCP server would be the best to use on Instant messenger server I am working on. The only issue I am facing right now is broadcasting and forwarding message ...
Upsilon asked 31/12, 2012 at 16:37

2

Solved

I use this code in my project: var P: TPoint; MyControl.Perform(WM_LBUTTONDOWN, 0, Longint(PointToSmallPoint(P))); The compiler gives me a warning: [Warning]: Unsafe typecast of 'TSmallPoint'...
Choirboy asked 28/12, 2012 at 22:47

1

Solved

I want to add MS Word file in my delphi 7 project directory.I already have created resource file (.rc) and include Word file in it.But when I am compiling .rc with BRCC32, it shows [Error] RLINK32:...
Cisneros asked 24/12, 2012 at 8:7

3

Solved

On my server there are a few files with Modified Date 31/DEC/1979 (Don't ask me why). So FileExists returns false. Sysutils.FileExists looks like this: function FileAge(const FileName: string): I...
Jury asked 19/12, 2012 at 18:56

5

Solved

I came across the necessity to union two selects from different databases, namely paradox (in bde) and ms sql server. Currently bde (through TQuery) is used only in this part of the programm (i.e...
Espousal asked 19/12, 2012 at 7:31

3

Solved

I have a situation where I have a TImage and on top of it a TPanel covering it partially and they share the same parent: ------------------ | Image1 | | ------------ | | | Panel1 | | | -----------...
Ezzell asked 13/12, 2012 at 20:26

3

Solved

I'm implementing drag-and-drop functionality to a TTreeView. On a OnStartDrag Event of it, I'm creating the DragOcject of my derived class: TTreeDragControlObject = class(TDragObject) private F...
Mycenaean asked 29/11, 2012 at 10:7

1

Solved

I have an TImage on a TPanel, and an other (empty) TPanels. I want to drag the image from the first to the second panel using the drag and drop. I actually want to see the image while it's moving ...
Mancilla asked 3/12, 2012 at 15:24

1

Solved

Note: I am using Delphi 7. Is there a way to split a string by a line break? I would like something like the following: procedure Split (const Delimiter: Char; Input: string; const Strings: T...
Lagos asked 2/12, 2012 at 8:31

2

Solved

I am using Delphi 7. I am new to DUnit, my doubt is what kind of test cases I can write using DUnit and how (that is very important for me). Is it possible to write test cases for a particular bu...

3

Solved

It's quite a contradictory habit of mine to press Ctrl+S permanently. The negative side is that delphi deletes empty functions/procedures on save. Is there a way to prevent IDE from deleting func...
Wurst asked 23/11, 2012 at 7:18

3

Solved

I want to a draw a translucent image on a Delphi form, but for some reason it is not working. Here is the original PNG (border is semi transparent): I load the image in a TTntImage object: Image1....
Hooknosed asked 11/5, 2011 at 13:2

2

Solved

I would like to get a "position" of a structure/record. Say I have this record: type MyStruct = record MyInteger : Integer; MyInteger2 : Integer; MyInteger3 : Integer; MyFunc : function (Fir...
Blackmon asked 31/10, 2012 at 23:38

1

Solved

I'm trying to improve a GUI by reducing the amount of clicks needed to perform some actions. However, one VCL component that's bothering me is a TValueListEditor which contains a list of keys and v...
Sindee asked 21/10, 2012 at 10:42

2

Solved

I would like to code a function that tells me if it's possible to WRITE a file/folder to a specific path or not. I would like to do that WITHOUT actually writing any file(s) to the disk. Is there a...
Lamaism asked 14/10, 2012 at 7:24

1

I'm using Synopse mORMot to access a SQLite database from Delphi 7. I wish to establish a connection and query the database directly via SQL without using the ORM (Object-relational mapping) featur...
Keyser asked 14/10, 2012 at 16:43

2

Solved

I constructed class system TTableSpec=class(Tobject) private FName : string; FDescription : string; FCan_add : Boolean; FCan_edit : Boolean; FCan_delete : Boolean; FFields : array[1..100] ...
Miracle asked 13/10, 2012 at 7:53

1

Solved

I recently moved from Delphi 7 to Delphi XE3. A dll file that was 107kb in Delphi 7 is now compiling to 2.7 MB. Another that was 114kb is now 4.7 MB! Is this normal? What might I do to reduce the...
Urgent asked 8/10, 2012 at 1:25

1

Solved

I have problem to display my Picture in TImage from my MySql database using Delphi. I save picture to my database with this code and work Perfectly. var AStream : TMemoryStream; AStream := TMem...
Guv asked 2/10, 2012 at 20:23

1

Solved

In my application, I have a base form in which various items are added to the system menu, for example AppendMenu (SysMenu, MF_SEPARATOR, 0, ''); AppendMenu (SysMenu, MF_STRING, SC_Sticky, 'Stic...
Savoirvivre asked 30/9, 2012 at 6:52

1

Solved

David Heffernan posted a custom filestream here: Buffered files (for faster disk access) It works on files less than 2 GB without problems and is very fast. On files greater than 2GB it fails arou...
Keelboat asked 25/9, 2012 at 4:45

1

Solved

I noticed that in compiled exe there are hard-coded paths to 3rd party components units. For example, if I use VirtualTrees component, TVirtualStringTree, in compiled executable I can find this pat...
Scoreboard asked 21/9, 2012 at 19:50

2

I have created a procedure in a dll that opens a form and then prints a report. This procedure works perfectly from an exe. I have wrapped the unit that contains this procedure and forms in a dll a...
Pare asked 20/9, 2012 at 10:31

2

Solved

I need to improve the performance of data loading. The current algorythm makes a full select from a table: select Field1, Field2,...,FieldN from Table1 order by FieldM The new data is read from ...
Gelatinate asked 13/9, 2012 at 3:2

4

Solved

I would like to allocate space (dynamic size) with a byte array and get a pointer to the "spacearea" and free it later if I don't need it anymore. I know about VirtualAlloc, VirutalAllocEx and Loc...
Insufflate asked 3/8, 2012 at 12:51

© 2022 - 2024 — McMap. All rights reserved.