delphi-2007

Debug buttons are disabled in Delphi 2007 IDE. Why?

Debug buttons are disabled in Delphi 2007 IDE. I can build project with command line or Project -> Build, but cannot run application or either attach to process. I'm wondering if anyone has encountered this issue in the past and can help me. Few facts: Delphi 2007 IDE was installed on my machine and worked just fine. Debug buttons go...

Why should I use Free and not FreeAndNil in a destructor ?

I have read A case against FreeAndNil but still don't understand why I cannot use this method in a class destructor ? Can anyone explain. Update: I think the comment from Eric Grange was most useful for me. The link show that this is not obvious how to deal with it and it is mainly a matter of taste. Also the method FreeAndInvalidate wa...

Registering a DCOM Server and running a client from remote system

Hi, I built a sample application for dcom by following the steps given in this link. After building the client and test DCom server, i tried to run client in my system and it worked correctly. But if i try to rum client from remote location, an error message is coming saying "Access is denied". How can i run my client in remote locati...

Delphi: Access type defined in dll for use as return type

Hello, I am writing a DLL with one function in it. This functions return value is a datatype defined in code within the DLL. On the applications side where I reference the function as an external call to a DLL Function CreateMyObject( MyString : String ) : TReturnType; external 'MyDLL.dll' How do I get access from the DLL to the ...

How to use minWidth, minHeight of a DevExpress LayoutControl ?

I have started to use DevExpress LayoutControl a bit. It feels powerful but I don't get it as I want. I want to set a minwidth and minheight of components as you can't have a dialog real small and it still look good. At the same time I want to let the user have arbitrary big size and let the components have equal share of the width and h...

Delphi DLL created from parented to calling application

Hello, I have an application that I make a call to a DLL function that creates and returns a form. I get a whole bunch of errors when I try to parent this new form to the main form in the application. Is that a common error / problem or is there not an issue with parenting in this case. And as far as I have learned a form create...

Where to find string constant srStandard in Delphi 2007?

Specification of RegisterComponents does not indicate in which unit the constant srStandard (the name of the 'Standard' category in the tool palette) can be found. ...

How to install classes or units like components in Delphi 2007?

I'm writing a package in Delphi 2007 containing a component and several classes. I want to "install" the classes as well as the components. To be more precise: when a component is installed, the unit is somehow registered such that it is not necessary to add its path to the search path in the project. I would also like to do this with a...

How to change characterset of an existing database for Interbase

We have a database and our client is written with Delphi 2007. The latest Interbase 2009 is used. The database is old, I believe it was created around 2002 and is now over 25 GB. Recently I discovered that in IBConsole upper('åäö') generate 'åäö'. It should be 'ÅÄÖ'. This is swedish characters that are missing in the English alphabet...

How to make sure a dialog is always front of the main window.

I have not yet found the best solution for this. I have a non modal dialog that can be opened in unlimited instances by a hotkey in the application. Even the dialog itself can open a new instance. I want those dialogs to always be front of the main application window. I have tried a couple of things. Set FormStyle to fsStayOntop. This ...

"Abnormal program termination" bug in the D2007 IDE : is there any workaround ?

I face a very annoying bug in D2007 IDE : It's the second time I have this problem within one month (on two differents computers, but with the same project), and it is a very annoying bug that causes the IDE to close itself without allowing me to save any changes in the code. I tried but cannot reproduce the bug, it only appears random...

Add a border icon to the form

Using Delphi I would like to add another button to the border icon buttons; close, maximize, minimize. Any ideas on how to do this? ...

In Delphi How can we find an open port?

We are using a Delphi TServerSocket and want to assign a port automatically. How can we find an open port in Delphi 7? ...

Delphi 2007 IDE crashes when I try to use "Find References" under Search menu.

After upgrading to Windows 7 all seems to work in my Delphi 2007 version except this one. I know that 2007 is not build for win 7 but I'm not sure that the OS is the reason. My friend is using it without a problem. When I use "Find Local References" all is fine. Do you know a fix for this? Some dll registration may be? ...

Get richtext from a richedit in Delphi

Is there a way to get the RTF data from a richedit without using savetostream as in strStream := TStringStream.Create('') ; try RichEdit.Lines.SaveToStream(strStream); Text := strStream.DataString; strStream.CleanupInstance; finally strStream.Free ...

Delphi 2007 Help System Install "Error"

Hi Ray, Did you ever solve the following problem? I am experiencing it. I'm running Windows 7 x64. "I was able to find a Delphi 2007 installer that had the December 2007 update. This installed OK, though the help did not install (displaying message "Error", then exiting). It runs OK, and I have also run the updater, which Identifies a ...

How to use ManagementObjectSearcher in Delphi?

I found on internet but I didn't got how can I use ManagementObjectSearcher in delphi. My main question which file I have to add in 'uses'. I found one code but can't make it run in my system. ...

List code without reference

I use Bold for Delphi with D2007. The model is rather big and now I discover we have many methods in the model that are not called. The compiler should give a hint about it but it is quiet. In Delphi the linker remove methods that do not have any reference. It then give a hint on that when compiling. I try to explain how Bold use method...

Delphi MainFormOnTaskBar Modal windows bug

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 b...

How can I tell when a Delphi TDBGrid has finished populating from a database?

I have a database populating a TDBGrid in Delphi 2007 Pro. When the grid finishes populating, I want to automatically fill a list box based on data processed from the grid. I can do this manually by watching and waiting for the grid to completely fill with the dataset and then calling my next procedure. Is there an event that would al...