I have a delphi 7 form:
and my code:
when I run this form in Windows 7, I see:
In design time, form had polish letters in first label, but it doesn't have them in runtime. It looks ok on Vista or Windows XP. When I set caption of second label in code, everything works fine and characters are properly encoded.
First 5 codes of t...
We have recently upgraded from Delphi 2009 to 2010.
One of the things in 2009 that suited us well was when you added a search path to a project (via Project -> Options -> Delphi Compiler -> Search Path) and used the browse dialog, the IDE would add in the relative path.
In 2010 this seems to have changed to absolute paths. Is there ...
Which do you think are best practices for making a windows dialog compatible both with standard fonts (96 dpi) and "large fonts" setting (120 dpi) so that objects don't overlap or get cut off?
BTW: Just in case it's relevant, I'm interested in doing this for Delphi dialogs.
Thanks in advance!
...
Hello everyone,
I am using the TSaveDialog component to save a file from a button click. However, I am having trouble with saving on an existing file name. Generally, when you want to save over an existing file in Windows, a message box pops up asking you if you really want to overwrite the file. This is not the case with the TSaveDialo...
I have a Unit test project for my Application using DUnit framework.
This project have a unit surrounded by a $IFDEF to output test-results in a xml file instead of the gui or just command line. XML_OUTPUT define is enabled by switching the Build configuration.
program DelphiCodeToDoc_Tests;
uses
TestFramework,
TextTestRunner,
Sy...
I wrote Delphi debug visualizer for TDataSet to display values of current row, source + screenshot: http://delphi.netcode.cz/text/tdataset-debug-visualizer.aspx . Working good, but very slow. I did some optimalization (how to get fieldnames) but still for only 20 fields takes 10 seconds to show - very bad.
Main problem seems to be slow ...
I'm using Delphi Pro 6 on Windows XP with FastMM 4.92 and the JEDI JVCL 3.0. Given the code below, I'm having the following problem: only the first exception handling block gets a valid instance of E. The other blocks match properly with the class of the Exception being raised, but E is unassigned (nil).
For example, given the curre...
I'd like to get FastMM memory leak report that shows up on app shutdown, but in a file instead of the dialog box. The idea is to use it in a release build as I have trouble reproducing the leaks.
I would however prefer to not use the FullDebugMode which seems to be required for logging to a file.
Am I missing anything or is this not sup...
I'm converting a D2006 program to D2010. I have a value stored in a single byte per character string in my database and I need to load it into a control that has a LoadFromStream, so my plan was to write the string to a stream and use that with LoadFromStream. But it did not work. In studying the problem, I see an issue that tells me t...
I managed to set the compiler to execute another program when the project is built/ran with the following directive in project options:
call program.exe param1 param2
The problem is that the compiler executes "program.exe" and waits for it to terminate and THEN the project executable is ran.
What I ask: How to set the compiler to run...
Based on one answer to an earlier post, I'm investigating the possibility of the following design
TChildClass = class(TObject)
private
FField1: string;
FField2: string;
end;
TMyClass = class(TObject)
private
FField1: TChildClass;
FField2: TObjectList<TChildClass>;
end;
Now, in the real world, TMyClass will have 10 differe...
Hi all,
I try to investigate DeHL with Delphi 2010 custom attribute and I get problem.
TAppParamTest = class
public
User: string;
Password: string;
end;
TAppParam = class
private
FTest: TAppParamTest;
public
constructor Create;
destructor Destroy; override;
property Test: TAppParamTest read FTest w...
I followed an excellent article by Rudy Velthuis about using C++ classes in DLL's. Everything was golden, except that I need access to some classes that do not have corresponding factories in the C++ DLL. How can I construct an instance of a class in the DLL? The classes in question are defined as
class __declspec(dllexport) exampleC...
Is there a free alphanumeric barcode font or class that is compatible with Delphi "PowerPDF" component ?
code must be code128.
...
Actually i am using the AsyncCalls library to execute an Query asynchronously in this way.
while AsyncMultiSync([RunQuery], True, 10) = WAIT_TIMEOUT do
begin
FrmProgress.refresh; //Update the ellapsed time in a popup form
Application.ProcessMessages;
end;
and everything works ok.
Now i wa...
I need help with converting c++ header file to delphi. I spent several days on this problem without success.
Below is the original header file and my Delphi translation.
C++ header
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#ifdef DVP7010BDLL_EXPORTS
#define DVP7010BDLL_API __declspec(dllexport)
#else
#define DVP7010B...
does anyone know of any good description of delphi's build system? (i know it's using MS Build.) i'm using delphi 2009.
i wanted to set up a variation of the Debug build configuration that (often) has different defines (d2009 seems to call them "preprocessor symbols").
the problem i'm having is that--even though i turned off "inherit...
I write couple of "assert(...)" in code, to make sure that pre- and post-conditions should be satisfied. We can tell the Delphi compiler, whether to compile with assertions in a debug version and without assertions in a release version.
I would like to know, if it is possible, to highlight "assert" like other Pascal keywords?
...
I have a TWicImage, IWicBitmap and a IWicBitmapSource that works nicely to display all the supported graphic fileformats, allows Rotation, Flip Horizontal, Flip Vertical, Scaleing and Clipping. All of these seem to work well and I can get the WicImages pixelformat, but i can not figure out how to change or set a TWicImage's pixelformat....
How delphi7 access C# .net managed dll ?
i'm trying to access some DLL that compiled in c# and they are not those old style DLL. ( i dont have source for those DLL)
i did tried to search online but they are confusing. i guess there is some limitation even if get to access it with D7 ..
thanks.
...