delphi-2007

Problem installing Delphi 2007 on Windows 7 64 Bit Enterprise

别等时光非礼了梦想. 提交于 2019-12-09 18:27:48
问题 I have an issue installing Delphi 2007 RAD Studio Professional onto Windows 7 64 Bit Enterprise. Everything is fine until I enter the serial number for the installation. After I enter it and click the next button in the installation wizard I get an installation script error at line 906. OKing that error closes the installer. I have done some Googling but have not found anything similar yet (though I have found a lot of references to people who have installed it on various versions of 64 bit

DoubleBuffered property being added in the dfm in Delphi 2009 does not exist in Delphi 2007

六月ゝ 毕业季﹏ 提交于 2019-12-09 11:49:49
问题 Does that mean that I can't share a Form between delphi 2007 and 2009? 回答1: Yes. It is not possible unless you remove the properties that are not published in Delphi 2007 from the DFM. 回答2: DoubleBuffered has been in TWinControl for some time now. The difference in Delphi 2009 is that it's published now. If you can live with only ignoring the errors (and not making the properties work instead), here is a possible solution: unit Delphi2009Form; interface uses Windows, Classes, SysUtils,

AsyncCall with Delphi 2007

拈花ヽ惹草 提交于 2019-12-09 09:03:38
问题 What I basically want is to start AsyncCall and proceed with my code loading. I have Interface section that consumes lots of time (600+ms) and I want to load this code in independent thread. I've tried to use AsyncCall to make something like this: procedure Load; begin ... end; initialization AsyncCall(@Load, []); // or LocalAsyncCall(@Load) However, this Load procedure actually starts in Main thread and not in the new created thread. How can I force the Load procedure to be loaded in any

Can I recompile the .PAS files used by the Delphi IDE?

拜拜、爱过 提交于 2019-12-09 03:18:43
问题 I am familiar with Jeff Atwood's article about how errors are always the programmer's fault, but I believe I have really and truly found a bug in a Delphi .pas file. Specifically, I'm using Delphi 2007, and the error is on line 955 of the DBCommon.pas file, which on my machine is located here: C:\program files\codegear\rad studio\5.0\source\Win32\db\DBCommon.pas And the code is this: ... FieldIndex := StrToInt(Token); if DataSet.FieldCount >= FieldIndex then LastField := DataSet.Fields

GetFileVersionInfoSize And GetFileVersionInfo return nothing

邮差的信 提交于 2019-12-08 13:20:50
问题 GetFileVersionInfoSize is 0 (zero) And GetFileVersionInfo return nothing I am using it Like this: function FileVersion(const FileName: TFileName): String; var VerInfoSize: Cardinal; VerValueSize: Cardinal; Dummy: Cardinal; PVerInfo: Pointer; PVerValue: PVSFixedFileInfo; begin Result := ''; VerInfoSize := GetFileVersionInfoSize(PChar(FileName), Dummy); GetMem(PVerInfo, VerInfoSize); try if GetFileVersionInfo(PChar(FileName), 0, VerInfoSize, PVerInfo) then if VerQueryValue(PVerInfo, '\',

How to sort the items of a TcxImageComboBox by Description?

南楼画角 提交于 2019-12-08 06:24:25
问题 I've found a good component to implement a Caption<->Value List for ComboBox: Is there a ComboBox that has Items like a TcxRadioGroup? The only problem is: It has a Sorted property, but that doesn't work. So, how do I sort the Items of a TcxImageComboBox? 回答1: Quick and dirty method, should work fine for most cases: function CompareItems(AFirst: TcxImageComboBoxItem; ASecond: TcxImageComboBoxItem): Integer; begin Result := AnsiCompareText(AFirst.Description, ASecond.Description); end;

Delphi MainFormOnTaskBar Modal windows bug

陌路散爱 提交于 2019-12-08 04:44:54
问题 HI I'm using Delphi 2007 and have set the MainFormOnTaskBar property to true. The issue that I'm having is this. If you open a child window from the main form and then you show a message dialog from the child window you just opened. When you close the message dialog and then close the child window, the main form will be sent to the back of any other application you have on the screen. This happens under windows Vista and Windows 7. Does anyone know why this is happens and how can I fix it?

Changing the console size

浪尽此生 提交于 2019-12-08 03:02:07
问题 Simple problem in Delphi. I've created a console application and I need to change the height of the console window to 80 lines, if it's less than 80 lines. This need to be done from code and is actually conditional within the code. (I.e. when an error occurs, it increases the size of the console so the whole (huge) error report is visible.) Keep in mind that this is a console application! When it starts, it uses the default console, which I need to alter! 回答1: When calling

Delphi 2007 Debugger Gone

人走茶凉 提交于 2019-12-08 01:22:27
问题 Scenario: Delphi did a non-normal shutdown. When I restarted I got the messages "Could not find xxxxx.bpl - Would you like to load this next time?" (NOTE: not exact language of message; but close). It did this on a couple files. Unfortunately I said "No - Don't Load on next Startup" and also did not note the specific bpl file names. I do recall they were in the CodeGear directory. This was stupid/lazy on my part. Delphi loads and compiles but there is no Debugging available (basically all the

Incompatibilities between Indy 9 and Windows Server 2003?

好久不见. 提交于 2019-12-07 13:49:31
问题 I'm having a problem with a Delphi application on some Windows 2003 servers. It uses a webservice call to connect with another server and transmit data back and forth. As soon as the app gets to the Authenticate method, the app dies. The app has worked for years on previous boxes with Win Server 2003, but it doesn't on freshly built machines. The machines are set up the same way for the most part, but there is clearly some config setting that differs that I'm not able to track down. Also,