Hi,
In Delphi 2009, how can I build a project using command line. I tried using the command line compiler and supplying -a -u -i -r in dcc32.cfg file. But compiler is not recognizing the paths and throwing the error required package xyzPack is not found.
-aWinTypes=Windows;WinProcs=Windows;DbiProcs=BDE;DbiTypes=BDE;DbiErrs=BDE
...
Hi,
When I execute delphi 2009 project using MSBuild command line, output always goes to C: drive
C:\MyProjects>MSbuild "C:\MyTestProject\Test.dproj" /t:Build /p:OutDir="C:\Output\bin\"
Why is this happening?
Thanks & Regards,
Pavan.
...
I have a very large number of app to convert to Delphi 2009 and there are a number of external interfaces that return pAnsiChars. Does anyone have a quick and simple way to cast these back to pChars? There is a lot on string to pAnsiChar, but much I can find on the other way around.
...
Hi all,
suppose I have a TModel:
TModelClass = class of TModel;
TModel = class
procedure DoSomeStuff;
end;
and 2 descendants:
TModel_A = class(TModel);
TModel_B = class(TModel);
and a factory :
TModelFactory = class
class function CreateModel_A: TModel_A;
class function CreateModel_B: TModel_B;
end;
Now I want to refactor...
What can I do that shortcuts for menu items don't overwrite those from local controls?
Imagine this simple app in the screenshot. It has one "undo" menu item with the shortcut CTRL+Z (Strg+Z in German) assigned to it. When I edit some text in the memo and press CTRL+Z I assume that the last input in the memo is reverted, but instead the...
Hello there,
I have just got my hands on D2009 and using it with one of our existing projects - it all compiles fine however I have just picked up DIRegEx to use some regex in the project.
However it's always giving warnings about String to RawByteString and vice versa.
Eg
var
Response : string;
begin
Response := idHTTP.Get('http...
What do you do to increase startup speed (or to decrease startup time) of your Delphi app?
Other than application specific, is there a standard trick that always works?
Note: I'm not talking about fast algorithms or the likes. Only the performance increase at startup, in terms of speed.
...
The businesswise calm of the summer has started so I picked up the migration to D2009. I roughly determined for every subsystem of the program if they should remain ascii, or can be unicode, and started porting.
It went pretty ok, all components were there in D2009 versions (some, like VSTView, slightly incompatible though) but I now ha...
Anybody know what is different about Delphi 2009's handling of "with"?
I fixed a problem yesterday just by deconstructing "with" to full references, as in "with Datamodule, Dataset, MainForm". Delphi 2006 and earlier applied "Close" to the Dataset. Delphi 2009 applied "Close" to the MainForm and exited the application!
...
I've noticed in this post that you can get stack trace out of FastMM to show what appears to be where the object was allocated.
http://stackoverflow.com/questions/271850/how-to-track-down-tricky-memory-leak-with-fastmm
I can't find any information on how to enable this in Delphi 2009.
I have set ReportMemoryLeaksOnShutdown to true so ...
I am working with QuantumGrid 6 from Devexpress. I need to store the grids settings in an xml configuration file. Unfortunately, the grid does not allow XML as a storage option. I can however export the settings to a stream.
I'm thinking to export to a stream then convert the stream to text and store it as an xml value. I guess the text...
Hello,
By using Google I have found some nice snippets of example code for using TDictionary in Delphi, but have not been able to compile any of them.
I use Delphi 2009 Update 1,2,3,4.
When I write this:
var Dic: TDictionary<Integer,string>;
I get "Unknown idenitifier TDictionary<,>"
How to use them?
...
I've got a form with a large TImage on it as a background. Problem is, this is stored directly in the DFM as a bitmap, which takes up about 3 MB. The original PNG file is ~250K. I'd like to try to reduce bloat by embedding the PNG in a resource, and then having the form load it during OnCreate. I can do that now that Delphi 2009 incl...
I'm using Graphics32 library in Delphi 2009. Is it possible to render a font using TBitmap32.TextOut method with MS' ClearType technology? I'm aware about GR32's built-in antialiasing (TBitmap32.RenderText) but the overall quality and performance is not gratifying.
[ Update ]
I've encountered another problem - I'm using function from T...
Hello,
I'm experiencing problems with debugging in Delphi 2009's IDE. Since having moved old projects that had been created using Delphi 7 to this version, all breakpoints except for those in one unit are neglected. I couldn't figure out which unit that is, but that seems to change from time to time.
Enabling debug DCU's overcomes this...
is there a free standalone editor for DBExpress connections (Delphi 2009) that can be installed on a customer PC and be used to manage DBExpress connections and (if available) drivers?
...
I am upgrading from Delphi 7 to Delphi 2009.
In an existing app, the code completion does nothing at all. If I start a new project, it works fine.
Any idea what is going on?
...
Hi,
On setting "Use debug .dcus" option to True in project options, method calls in my application does not work as expected.
Say for example,
I call a method func(a, b, c);
In the "func" definition c's value is assigned to "a" and a's values is assigned to "c" and everything goes crazy.
I tried to create it in sample application,...
Hi, I'm having a problem understanding VFI in Delphi2009. If I change my layout in the baseform, those changes are not propagated to the inherited form. For example, replacing a DBNavigator in the baseform with buttons has no effect on iherited forms. Is there any way to accomplish this? Or do I have to re-implement all my iherited fo...
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 ...
end;
finally
Lock.EndRead;
end;
without loosing the read lock after the EndWrite, so that no other writers...