52,199
questions
270
votes
1
answer
11k
views
How to affect Delphi XEx code generation for Android/ARM targets?
Update 2017-05-17. I no longer work for the company where this question originated, and do not have access to Delphi XEx. While I was there, the problem was solved by migrating to mixed FPC+GCC (...
193
votes
9
answers
408k
views
Indentation shortcuts in Visual Studio
I'm using Visual Studio 2010 and C#. How can I indent the selected text to left/right by using shortcuts?
In the Delphi IDE the equivalents are Ctrl+Shift+I and Ctrl+Shift+U
184
votes
20
answers
448k
views
The application was unable to start correctly (0xc000007b)
I have a client/server app which I have been developing on a single PC. Now it needs two serial ports, so I borrowed a PC from a friend.
When I build my app and try to run or debug it (whether in the ...
177
votes
2
answers
3k
views
Delphi XE custom build target is always disabled
I've created a custom MSBuild .targets file that I've included in a Delphi XE project via the IDE and enabled it from the Project Manager's context menu. Although the file validates, it always gets ...
153
votes
1
answer
23k
views
SOAP server and client application VCL+indy demo for Delphi XE?
Delphi used to include a demos folder for web Services, but no longer seems to include this.
I just tried the Delphi 7 demo projects (SOAPDMServerWAD, a server with almost no UI at all, and ...
148
votes
7
answers
46k
views
Find out what process registered a global hotkey? (Windows API)
As far as I've been able to find out, Windows doesn't offer an API function to tell what application has registered a global hotkey (via RegisterHotkey). I can only find out that a hotkey is ...
147
votes
2
answers
8k
views
How to create "No Activate" form in Firemonkey
In XCode by adding these methods to your NSView subclass can prevent the window from becoming active when clicking on it:
- (BOOL)shouldDelayWindowOrderingForEvent:(NSEvent )theEvent {
return YES;...
146
votes
8
answers
11k
views
EProgrammerNotFound exception in Delphi?
In Delphi 2009, SysUtils.pas contains this in line 425:
EProgrammerNotFound = class(Exception);
Is this simply an easter egg or something serious?
When should this exception be raised?
Does it also ...
124
votes
3
answers
35k
views
List of Delphi language features and version in which they were introduced/deprecated
Before I begin, I would like to point out that I have honestly and genuinely searched repeatedly and exhaustively via Google for such a thing, and been unable to find one.
I require (for a project I'...
118
votes
10
answers
75k
views
Are delphi variables initialized with a value by default?
I'm new to Delphi, and I've been running some tests to see what object variables and stack variables are initialized to by default:
TInstanceVariables = class
fBoolean: boolean; // always starts ...
111
votes
4
answers
57k
views
How do I make my GUI behave well when Windows font scaling is greater than 100%
When choosing large font sizes in the Windows control panel (like 125%, or 150%) then there are problems in a VCL application, every time something has been set pixelwise.
Take the TStatusBar.Panel. ...
110
votes
13
answers
207k
views
How do I include a newline character in a string in Delphi?
I want to create a string that spans multiple lines to assign to a Label's Caption property.
How is this done in Delphi?
106
votes
1
answer
3k
views
How do you extract local variable information (address and type) from a Delphi program or the compiler-generated debug info?
My goal is:
Given a suspended thread in a Delphi-compiled 32 or 64-bit Windows program, to walk the stack (doable)
Given stack entries, to enumerate the local variables in each method and their ...
104
votes
1
answer
3k
views
Is there a way to programmatically tell if particular block of memory was not freed by FastMM?
I am trying to detect if a block of memory was not freed. Of course, the manager tells me that by dialog box or log file, but what if I would like to store results in a database? For example I would ...
99
votes
1
answer
2k
views
Required tags not present when using Delphi XML Data Binding Wizard
I am using the XML Data Binding Wizard in Delphi XE2.
The schema has required tags of this type:
<xs:element name="MyReport" type="MyReportType" />
<xs:complexType name="MyReportType">
&...