delphi Questions

4

Solved

Below is my code: var i : integer; ... ... if not VarIsNull(TcxLookupComboBox(Sender).EditValue) then begin i := Integer(TcxLookupComboBox(Sender).EditValue); end; I can use VarToStr to conv...
Stepmother asked 26/5, 2014 at 6:43

2

Solved

I have a script that starts msbuild and compiles a bunch of libraries. Here is the test script for one of them: CALL _whereIsDelphi.cmd Alex CALL "%DelphiPath%\bin\rsvars.bat" msbuild &qu...
Hypabyssal asked 15/1 at 14:0

2

Solved

I noticed in Delphi 12.1, that there's a "Windows 64-bit" and a "Windows 64-bit (Modern)" within the library paths I tried searching for what it could be, but didn't find anyth...
Catenoid asked 10/4 at 7:45

4

Solved

In Delphi 2007 you can store a UTF-8 string in a WideString and then pass that onto a Win32 function, e.g. var UnicodeStr: WideString; UTF8Str: WideString; begin UnicodeStr:='some unicode text'...
Binns asked 23/4, 2010 at 10:38

11

Solved

I need to read from and write to Excel spreadsheets using Delphi 2010. Nothing fancy. Just reading and writing values from specific cells and ranges on different sheets. Needs to work without havin...
Longshoreman asked 17/3, 2010 at 19:13

3

Solved

How do I deactivate Delphi's "Cursor beyond end of line" feature? When I click in the empty space to the right of a line, or when I navigate to a line with the arrow keys, I want the cursor to be a...
Spradling asked 31/7, 2013 at 17:54

4

Solved

I am trying to make HTTP Requests from Delphi using the WinInet functions. So far I have: function request:string; var hNet,hURL,hRequest: HINTERNET; begin hNet := InternetOpen(PChar('User Agen...
Pacifica asked 1/12, 2009 at 1:49

3

Solved

I have 3 arrays, for example: const A: Array[0..9] of Byte = ($00, $01, $AA, $A1, $BB, $B1, $B2, $B3, $B4, $FF); B: Array[0..2] of Byte = ($A1, $BB, $B1); C: Array[0..2] of Byte = ($00, $BB, $F...
Mol asked 1/12, 2012 at 22:16

5

Solved

I found a Windows API function that performs "natural comparison" of strings. It is defined as follows: int StrCmpLogicalW( LPCWSTR psz1, LPCWSTR psz2 ); To use it in Delphi, I declared it thi...
Martin asked 21/6, 2009 at 18:50

2

Solved

I am a little confused why Delphi has Debug information in linking and debug information in compiling. What is the difference between them ?
Sporogenesis asked 16/2, 2012 at 11:8

9

Solved

I wrote an application (a psychological testing exam) in Delphi (7) which creates a standard text file - ie the file is of type ANSI. Someone has ported the program to run on the Internet, probab...
Lubalubba asked 5/2, 2011 at 16:11

3

Solved

I'm new to Delphi, coming from Visual Studio it's a simple question (I guess): how do I prevent Delphi 10 Seattle to open last use project(group) when I start the IDE? I've found some information ...
Squat asked 6/12, 2016 at 12:11

3

Solved

I am trying to call a method in a Delphi DLL with the following signature: function SMap4Ovr(const OverFileName : ShortString ; const Aclay : Integer ; const Acarbon : Double ; out errstr : Sh...
Valiancy asked 17/5, 2013 at 4:29

1

I created an empty project and added an RC file to the project via the Project Manager. This will add the following line in my DPR file: {$R 'VersionInfo.res' 'VersionInfo.rc'} The project compil...
Skiagraph asked 4/4 at 12:22

7

So, after some recent changes we discovered that one of our oldest applications is sometimes crashing on shutdown. This manifests itself either in the form of "Runtime error 216" messages or in a m...
Liederman asked 3/3, 2011 at 13:11

3

Solved

So I have a TMenuItem attached to a TAction on a TPopupMenu for a TDBGrid (actually 3rd party, but you get the idea). Based on the selected row in the grid, the TAction is enabled or disabled. What...
Plosive asked 22/1, 2009 at 20:37

4

Solved

I am trying to request access and refresh tokens from Google using oauth2, all I am getting is a "HTTP/1.1 400 Bad Request" error. I am using IdHTTP in Delphi XE5 with the IdSSLIOHandlerSocketOpen...
Charlettecharley asked 14/12, 2015 at 16:14

7

Solved

I'm using Delphi XE5 on Windows 7 64bit and just trying FireDAC component. I'm using one TFDConnection component to connect to local MySQL database (v5.6.15). I already put the libmysql.dll (32bit...
Therapeutic asked 18/2, 2014 at 14:46

5

Solved

Most of the units I work on rely on a Data Module. One of the most annoying things I come accross is an error message telling me Module X references another module and cannot be saved until Mod...
Upside asked 10/3, 2010 at 10:34

1

Solved

Our company upgraded to Delphi 12 a few months ago. Today I discovered that my image viewer's context menu, which used to look like in the left image below, now appears with a single menu item blan...
Trumpetweed asked 19/3 at 13:4

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

1

I need to change the TStringGrid (change some private fields/methods). So I made a copy of the pas file. I also deleted the DCU file from Delphi, but I have to see if this is a good idea. Then I pu...
Km asked 13/3 at 8:47

5

Solved

What are the detailed steps on how to debug the Delphi IDE? I understand, from other posts, that one needs to create a project and, in the project's debugger settings, set the project's "host ...
Parole asked 10/3, 2012 at 4:56

3

Solved

I've been signing compiled apps for several months and have a script that calls the Windows 10 SDK signtool. It's been working fine on two different computers and my certificate is valid. Today, I ...
Landsknecht asked 2/6, 2020 at 20:45

© 2022 - 2024 — McMap. All rights reserved.