delphi-7 Questions

4

Solved

If i want to set a colour property to something thats non-standard (i.e. not something like clBlack or clRed) how can i do this? Can i set something like hexadecimal colours?
Dissipation asked 18/3, 2010 at 15:17

1

Solved

I was inspired by this question: How to make a combo box with full-text search autocomplete support? The answer works just fine but I want to adjust the suggestion list Height/DropDownCount when t...
Secunda asked 19/5, 2017 at 13:4

10

Solved

Is there a method in Delphi to check if a string is a number without raising an exception? its for int parsing. and an exception will raise if one use the try StrToInt(s); except //exception ...
Folkmoot asked 3/2, 2011 at 9:22

4

As a test I decided to create a simple "Hello world" app in Delphi using Delphi 4, 5, 6, 7, 2005, 2010 and XE3. The app is nothing more than a TForm, a TButton with an OnClick event that calls Show...
Expectation asked 4/5, 2013 at 18:42

4

Solved

While reviewing some code in our legacy Delphi 7 program, I noticed that everywhere there is a record it is marked with packed. This of course means that the record is stored byte-for-byte and not ...
Alpha asked 11/10, 2011 at 22:10

3

Solved

I have following statement in my Delphi 7 code. TMyCharSet = set of char; When I migrated that code to Delphi XE4, I am getting following compiler warning at above line. W1050 WideChar reduced ...
Fillister asked 17/10, 2013 at 5:56

1

Solved

procedure display;inline; begin showmessage('sakthi'); end; procedure TFrmInline.BtnDisplayClick(Sender: TObject); begin display; end; In this program if i compile it shows the error that "dec...
Pauwles asked 17/2, 2017 at 7:0

7

Solved

I have a list of integers or of strings and need to pass it as a parameter for a Delphi DataSet. How to do it? Here is an example. MyQuery is something like: select * from myTable where intKey in...
Flowery asked 10/4, 2012 at 15:35

4

Solved

I was wondering if there is any Borland cross compiler that can make my windows code work on linux without wine.I'm using winxp with delphi 7. I was always wondering if it was possible to code same...
Portaltoportal asked 11/4, 2012 at 15:36

2

Solved

I'm having a problem trying to decode XML data returned by an instance of MS SQL Server 2014 to an app written in D7. (the version of Indy is the one which came with it, 9.00.10). Update When I or...
Hubby asked 5/12, 2016 at 21:32

2

I have a data module with a global TADOConnection (with the default KeepConnection set the true). There are numerous datasets and queries in my existing application that use this global TADOConnec...
Okay asked 24/6, 2015 at 10:47

2

Solved

I created a new c++ DLL project in VS2010 that exposes 1 function #include "stdafx.h" #define DllImport extern "C" __declspec( dllimport ) #define DllExport extern "C" __declspec( dllexport ) D...
Gunrunning asked 1/5, 2012 at 23:58

1

I am using the code below to close an MDI child form by clicking on the system close button, and it works fine: procedure Tfrm_main.FormClose(Sender: TObject; var Action: TCloseAction); begin Ac...
Litchfield asked 25/11, 2016 at 8:12

5

Can we combine two or more conditions in one if statement? I know that in C# we can combine two or more conditions in an IF statement. Can we do it in Delphi? I have to check whether the user ente...
Jungle asked 26/6, 2012 at 22:46

1

Solved

This statement (in Delphi 7) writeln(logfile,format('%16.16d ',[FileInfo.size])+full_name); results in this output 0000000021239384 C:\DATA\DELPHI\sxf_archive10-13.zip This statement writel...
Ylla asked 22/10, 2016 at 22:47

5

Setting a form to WindowState = wsMaximized will sometimes cause the form to be maximized but not: Long-time bug: this is a question I first asked in the Borland newsgroups in 2003: Accepted f...
Blood asked 20/10, 2013 at 17:15

6

Solved

Just want to load a .PNG, tried with my LoadPic() using OleGraphic that works with other formats, but it failed on PNG. The goal is to copy the image to a hidden bitmap whence it is then masked an...
Teniers asked 4/6, 2011 at 15:44

2

Solved

This is the simplified scenario, in Delphi 7: procedure TMyClass.InternalGetData; var pRequest: HINTERNET; /// nested Callback procedure HTTPOpenRequestCallback(hInet: HINTERNET; Context: PDW...
Clop asked 1/9, 2016 at 7:45

6

Solved

I have a text file with user information stored in it line by line. Each line is in the format: UserID#UserEmail#UserPassword with '#' being the delimiter. I have tried to use this coding to perfo...
Lincoln asked 18/8, 2016 at 15:10

3

Solved

I want to create a directory say TestDir but only when that directory does not exist. I don't find the way the check the existence of that directory. I am using following function to create the di...
Con asked 19/2, 2013 at 6:34

1

Solved

I have this code in Delphi Detours library which I'm trying to port: type TInstruction = record Archi: Byte; { CPUX32 or CPUX64 ! } AddrMode: Byte; { Address Mode } Addr: PByte; VirtualAddr: ...
Baler asked 15/7, 2016 at 10:3

3

Solved

Does anyone know how to create a Delphi form without a title bar? I have seen some some links/tips but its not exactly what I want and I couldn't do it myself. This is what I am trying to achieve:...
Paraphrase asked 8/12, 2012 at 20:3

2

Solved

I have this line: const MY_SET: set of WideChar = [WideChar('A')..WideChar('Z')]; The above does not compile, with error: [Error] Sets may have at most 256 elements But this line does com...
Lamplighter asked 21/6, 2016 at 5:31

2

Solved

I have this code (I need to add string object to TStringList): var WS: WideString; begin WS := 'allocated string'; SL.AddObject('my string', TObject(SysAllocString(PWideChar(WS)))); And later...
Melo asked 19/6, 2016 at 17:45

1

Solved

I have a Windows program (exe) that was written in Delphi (Delphi 7 I think) several years ago and that program is still used occasionally. It contains a Single type variable that is multiplied by ...
Colophony asked 11/6, 2016 at 16:44

© 2022 - 2024 — McMap. All rights reserved.