delphi-7 Questions

4

Solved

I have a database column which can take only 40 characters of a string. So when the length of string is greater than 40 characters, its giving me error. How can I cut/trim the string to 40 characte...
Centuple asked 18/2, 2013 at 12:26

3

I have the following code (IP addresses changed) in a Delphi 7 project. const {$IFNDEF DEBUG} AUTHENTICATOR_DB_ADMIN_HOST = '123.456.789.12'; {$ELSE} AUTHENTICATOR_DB_ADMIN_HOST = '127.0.0.1'; {...

2

Solved

I am very confused. I need to read binary files (.fsa extension by Applied Biotechnology aka ABIF, FASTA files) and I ran into a problem reading signed integers. I am doing everything according to ...
Bomke asked 25/11, 2020 at 12:48

4

Solved

How can I get source code from WebBrowser component? I want to get source code of active page on WebBrowser component and write it to a Memo component. Thanks.
Ehr asked 10/4, 2012 at 15:27

6

Solved

I'm trying to convert my current Delphi 7 Win32 code to Delphi XE5 Android with minimal changes, so that my project can be cross-compiled to Win32 from a range of Delphi versions and Android from X...
Carrefour asked 21/10, 2013 at 6:56

6

I written a program with Delphi 7 which searches *.srt files on a hard drive. This program lists the path and name of these files in a memo. Now I need convert these files from ANSI to UTF-8, but I...
Jeweller asked 2/4, 2009 at 18:23

1

Solved

I will try to simplify my problem. If for example you drop 2 TSpeedButton and do: procedure TForm1.SpeedButton1Click(Sender: TObject); begin Screen.Cursor := crHourGlass; SpeedButton2.Cursor := ...
Fillander asked 4/12, 2019 at 16:27

3

Solved

in MS Sql there are data types that are not supported by delphi 7, the xml datatype is one example. I wish to convert the XML datatype to Text datatype, so that i could handle it in delphi. Is ...
Alvy asked 5/1, 2011 at 15:32

1

Solved

I am trying to define the TWaveFormatExtensible type, but I am not sure if am I declaring correctly the Samples union. Here is the original declaration from header file (Windows SDK 10.0.17763.0): ...
Yahwistic asked 9/11, 2019 at 18:55

6

Solved

In another question, I found out that the Assigned() function is identical to Pointer <> nil. It has always been my understanding that Assigned() was detecting these dangling pointers, but no...
Lanie asked 22/12, 2011 at 1:21

2

Solved

How do I use c# similar Math.Round with MidpointRounding.AwayFromZero in Delphi? What will be the equivalent of: double d = 2.125; Console.WriteLine(Math.Round(d, 2, MidpointRounding.AwayFromZero...
Sweeping asked 24/6, 2019 at 8:5

2

Solved

I am using ShellExecute the same way given below, to open a txt file in Delphi7, it gives me access violation in module BORdbk70.dll. Not sure what this issue is? I have added ShellApi in uses lis...
Underground asked 24/3, 2015 at 8:35

1

Solved

I want to order a List of Strings with different Options. Options are: Alphabetical Sort or Logical Sort Case-Sensitive or not Case-Sensitive Ascending or Descending I have all branches covered...
Ki asked 7/1, 2019 at 17:14

2

I'm using this Delphi 7 code to detect if Internet Explorer is running: function IERunning: Boolean; begin Result := FindWindow('IEFrame', NIL) > 0; end; This works on 99% of the systems wit...
Mamie asked 18/3, 2013 at 4:16

2

Solved

I wanted to know if anyone ones a way that I can export data from a DBGrid to Excel ? I am using Delphi 7 , Excel 2007 and ADO . Any help will be appreciated.
Choosey asked 12/6, 2013 at 5:57

2

Solved

I want to copy a part of a FileStream to a MemoryStream. FileStream.Write(Pointer(MemoryStream)^, MemoryStream.Size); FileStream.Read(Pointer(MemoryStream)^, count); Is that right? It isn't work...
Bloodstream asked 5/6, 2010 at 0:3

3

Solved

This is easy in AVX with the VBROADCASTS command, or in SSE if the value were doubles or floats. How do I broadcast a single 8-bit value to every slot in an XMM register in Delphi ASM?
Southland asked 5/1, 2015 at 13:15

6

Solved

I have image (500x500) but I need to resize it to 200x200 and paint it on TImage. How to achieve such result? NoteI know about Stretch property in TImage, but I want to resize the image programmat...
Chary asked 13/11, 2011 at 12:15

6

Solved

I need to strip out all non standard text characers from a string. I need remove all non ascii and control characters (except line feeds/carriage returns).
Imprison asked 13/4, 2011 at 14:0

9

Solved

In this question is mentioned the wcrypt2. What I need is simply calculate the MD5 of a file. It would be perfect if I could calculate it without having to save it because it is a downloaded file ...
Verleneverlie asked 15/1, 2009 at 18:55

1

Solved

I have this record type TDoublePoint = record X : Double; Y : Double; end; then I have object with this property uses ..TypInfo; TCell = class(TPersistent) private FZoom : TDoublePoint ...
Mastin asked 10/8, 2017 at 21:30

3

Solved

I have an application that writes program settings to the windows registry that is absolutely necessary so.storing to a file is not an option. To simplify this, I would like to give an "admin priv...
Imprimis asked 5/2, 2013 at 8:26

6

Solved

Anyone knows other way to get a directoy's size, than calculate it's size by counting file with file? I'm interested on some win32 API function. I've google it about this, but i didn't found releva...
Ehlers asked 22/7, 2010 at 10:8

4

Solved

Of course, this piece of code will not compile. First I need to cast a TObject value to Integer. Then, read it as a string. What function should I use? for i := 1 to 9 do begin cmbLanguage.Items....
Calculated asked 23/4, 2013 at 0:36

2

Solved

Please help me find days between two dates. I have two objects TDBDateEdit date1 and date2. procedure Torder_form.date2Click(Sender: TObject); var d3: TDateTime; begin d3:=date2.date - date1.da...
Sangsanger asked 7/10, 2015 at 11:30

© 2022 - 2024 — McMap. All rights reserved.