delphi-2007

How can I communicate with WCF from Delphi using Named Pipes Binding

Can I use Delphi 2007 to communicate with a WCF service using the netnamedpipebinding ? If so, then how? ...

Delphi: How to process multiple files?

In Delphi 2007 how can I make a program to read the first file and then close it to read the second one and so on until the last file? ...

Can I make a TTreeNode invisible?

TTreeNode does not have a Visible property, so the obvious option does not exist. Is there any other way to make a TTreeNode and all its child nodes invisible? Of course I want to be able to make it visible again later. This is with Delphi 2007. Note#1: I am aware of the alternative TVirtualTreeView, and I will check it out if there is...

Delphi 2007 ASP.NET application crashes after installing IE8

When attempting to compile, application crashes with an error: "Access violation ... in module 'mshtml.dll' and delphi dies. tia jon ...

App That Uses SDK BSODs in Delphi 2007 But Works in C#

I'm coding an application that uses a third party SDK (OCXs). I use the SDK in C# and it works just fine. However, I can create the simplest test application with the same objects from the SDK in Delphi 2007 and it compiles ok, but BSODs on the same machine when it gets to a certain point. I've run some other test applications that us...

Exception in Delphi App: EOleError Could Not Obtain OLE Control Window Handle

I'm coding a Delphi application using Delphi 2007. I'm using a third party OCX and when I try to show a form from the main form I'm getting an exception: Exception class EOleError with message 'Could not obtain OLE control window handle'. The form that I'm trying to show was created manually within Delphi with the OCX dragged from the...

Get/Set TShellListView Path/Folder as String (Not Using .Root)

I want to set the path for a TShellListView to display a directory of files using Delphi 2007. I can initially use TShellListView.Root to set the root path like this and it shows the directory I want: View := TShellListView.Create(Self); // ... View.Root := 'C:\Windows'; But if the user navigates away from that directory using backsp...

Any way to change colour of the Code Insight red 'underline' in Delphi2007 IDE?

I hope the question says it all, really. I use the old Turbo Pascal type colours (navy blue background and white, yellow text etc) in all my Delphi IDEs, including D2007. I'm sufficiently colourblind that I can't really make out the red squiggly lines in my code - but I find the feature really useful when I do notice them. I've tried sw...

Delphi - How Control Z Order Of TOpenDialog

I have a modal dialog that is created with the following: procedure TFormCompose.createParams(var Params: TCreateParams); begin inherited createParams(Params); with Params do begin exStyle:=exStyle or WS_EX_APPWINDOW; wndParent:=getDesktopWindow; end; end; In this form, I create an instance of TOpenD...

Create TImageList by specifying paths only

In Delphi 2007, images are loaded in a TImageList at design time. This introduces the following problem: I have a folder containing the graphics I'm using in my application Whenever I want to change, say, the icon for 'save', I have to Change the graphic in the folder (for my own purposes) Iterate along all TImageLists in the applicat...

Install D5 (& third party comps) on a machine with Delphi 2007?

I've got a Delphi 2007 VM which includes a reasonably up-to-date Report Builder and Dev Express Suite. I use it for a particular project for a particular client. For that same client, I also have a D5 VM which just so happens to use a (different, older) version of Report Builder and a different (older) version of some of the Dev Express...

Detect if my application is running under the IDE "Delphi 2007 .Net"

Hi, How can I detect if my application is running under the IDE "Delphi 2007 .Net", there is something like DebugHook? Bye. ...

Create a C# DLL That Can Be Imported in a Delphi App Using stdcall - Possible?

I have a program that I need to create a DLL for, hopefully in C#. The program is written in Delphi and I have an interface file to code to. The interface uses the stdcall calling convention. Is it possible to create a C# DLL that conforms to the interface and can be used in the Delphi application? Is there some sample code that demo...

New Version of Third Party COM DLL - How to Install and Keep Old Versions in Delphi?

I need to have my Delphi program use a new version of a third party DLL. I'd like to be able to use the new version but revert to the old version if I need to. Some of the objects are invisible objects on a form in the app. Others I instantiate at runtime. How do I install the new version of the DLL into Delphi while maintaining the ...

Set TShellListView Persistent Column Widths in Code

Is there any way to persistently set the column widths on a Delphi 2007 TShellListView in vsReport mode using code? The normal ShellListView.Columns[0].Width property only sets the width for the current directory, and that width is reset after every change of the current directory or refresh of the file list (including refreshes and dir...

Consuming an ADO.NET Data Service from a WIN32 Delphi application. How?

Simple. I created a LINQ-TO-SQL Entity model, created a website, added a Data Service (*.svc) to this site and made sure it works by writing a simple .NET console application. The service works fine and cannot be modified. Now I'm going to write a Delphi application (2007) for WIN32 which will have to call this data service. And while D...

dbExpress error in Delphi 2007

I have had Delphi 2007 for a while. I tried the Delphi 2009 trial. Then I un-installed the trial. Now I get this in a dbExpress Delphi 2007 application: --------------------------- Debugger Exception Notification --------------------------- Project ABC.exe raised exception class TDBXError with message 'Unable to load dbxora.dll (Err...

How to make PBear's THtmlViewer load & show a unicode HTML file?

Mercifully brief for once, from me - hopefully the title says it all. I have some unicode .html files that I want to display inside a THtmlViewer component, in Delphi. I can't seem to persuade the code to work just doing '.LoadFromFile' - do I firstly need to load the unicode file into a stream and then somehow convert it? Delphi 200...

Can Delphi 2006 be Installed After Delphi 2007 is Already Installed?

During rebuild after a computer crash, I re-installed Delphi 7, then Delphi 2007. We skipped installation of Delphi 2006. However, now I would like to install Delphi 2006 before Embarcadero discontinues allowing for download of the latest version of D2006. Is it possible to install Delphi 2006 on this computer without having an advers...

Creating a custom form designer

I'd like to create a custom "datamodule" in Delphi, a TDataModule like (maybe inherited) class which would have a custom grid based design interface (one component per line, some properties as columns). Is this possible? Where should I start? I'm currently using Delphi 2007. ...