delphi

Delphi 2009: "XML document must have a top level element" error when using TIdHttpWebBrokerBridge

We have a app which uses HttpWebBrokerBridge, it works fine in Delphi2006 but when I recompile using Delphi2009 I get EDOMParserError exception with message "XML document must have a top level element". I don't have any clues as to what's causing this error. Any clues as to what I should do? Sandeep ...

How can I fire an event handler after a value in a TcxGrid has changed?

I've got a DevExpress TcxGrid, with an event handler attached to its GridView's OnEditValueChanged event that's supposed to summarize some data in one of the columns. Problem is, this event gets fired during validation, before the updated value has been written to the underlying dataset. I'm not too familiar with the TcxGrid. Does any...

Dont want form to minimize

Is it possible to disallow minimizing of a form\application in delphi ? I found the following code procedure TForm1.WMShowWindow(var Msg: TWMShowWindow); begin if not Msg.Show then Msg.Result := 0 else inherited; end; but if I press windows key + M or Windowskey + D, then it still gets minimized is there a way to preven...

Zlib in Delphi 2009

I am upgrading a app to Delphi 2009. The app uses Soap and we compress the soap request and response streams using Zlib. This works fine in Delphi 2006 but not in Delphi 2009. So I went back to Delphi 2006 and changed to use FastZlib. It all worked fine in Delphi2006 but does not work in Delphi 2009 and I get Decompress errors. Has any...

How to fix Delphi 2009 Data Explorer?

Probably I have messed several delphi versions installations by installing / uninstalling several times (I think I did not follow the order of release). I want to try out Developer Studio 2009 but after installation (althought everything other seems to work fine), when I click The Data Explorer tab nothing is shown on the list. This issu...

How can I update a DataSnap server while clients are still connected?

We use stateful DataSnap servers for some business logic tasks and also to provide clientdataset data. If we have to update the server to modify a business rule, we copy the new version into a new empty folder and register it (depending on the Delphi version, just by launching or by running the TRegSvr utility). We can do this even whi...

Debug dcu path

Please provide me some details about debug dcu path and where it is used. ...

How to use IIS Debug Diagnostics report to locate source file line in Delphi COM component

We have a Delphi COM component being called from an ISAPI web app. The COM component is hanging the app because it is trying to display a MessageBox(). We have no MessageBox() call in our user code so it must be located in the Delphi runtime source, probably in exception handler code. We have an IIS debug diagnostics report that shows...

Prevent Delphi COM component from showing MessageBox()

We have a Delphi 2007 COM component being executed from an ISAPI app. The COM component is hanging the app because it is attempting to display a MessageBox(). The call to MessageBox() must be occurring in the Delphi RTL becase it is not in our user code. The app hangs, of course, because there is no one logged in at the server to clea...

Delphi 2009 Web Services "xml document must have a top level element"

A variety of delphi demos I've built today with Delphi 2009 (update 3/4 applied) all seem to result in the client of any localhost web service I try to consume returning an "xml document must have a top level element" error This includes, for example, even a demo as simple as http://blogs.embarcadero.com/pawelglowacki/2008/12/18/38624 ...

How can I handle temporary files ?

Hi, In my application my users can import files (pdf/xls/doc) to a table or export them to a folder. Now I want to directly open these files. So far I'm able to : - get an unique name - save the blob file into the generated file - open it The problem is that I don't know how to delete (or update) the file after that the file will be c...

"Delphi Fundamentals" in Delphi 2009

Hello, Has anybody used/converted "Delphi Fundamentals" in Delphi 2009? - http://fundementals.sourceforge.net/ I'm using Dictionaries (cArrays.pas,cDictionaries.pas,cStrings.pas,cTypes.pas) in my project and now i have some troubles on upgrading code. I'll be highly obliged if anybody can convert the above mentioned units in Delphi 200...

Non-Modal Child Window That Allows Mainform To Be Drawn On Top - Delphi

In Delphi (2009 Pro) - I have a main form that can create non-modal child windows. I want whichever form has the focus to draw on top - even if it is the main window that has the focus. ...

Delphi Prism Cirrus accessing and setting the Result of a function

Background This question relates to the new Cirrus infrastructure for Aspect Oriented Programming in Delphi Prism. I currently have an aspect which I am Auto-Injecting into a class and am attempting to modify the target code using aMethod.SetBody function. I have structured my code thus far using the Logging example code found on the C...

How can I convert a Html file to a pdf file in Delphi

Which library or component can do this in a easy way and not too expensive. Edit: Oeps: I should have informed you that it is web app. and we can't rely on the the user have PDF driver installed. ...

Importing D7 DPR in Delphi 2009: "Invalid character in text content"

I'm trying to open old projects generated in Delphi 7 with Delphi 2009. On some projects, this causes the following error message from the IDE: "An invalid character was found in text content" The affected projects are working fine in the old IDE. How can I solve this? ...

#region equivalent in CodeGear RAD Studio? Similar way to group code?

I was wondering if there is an equivalent to Visual Studio's #regions in RAD Studio. We use CodeGear's delphi and c++builder IDEs where I work and I would love to be able to use something like regions. My coworkers and I have yet to find an equivalent way of grouping code... do you know of any? Thanks! ...

Indy "Could not load SSL Library" with Delphi 2007/Apache

I know this question has been asked a number of times. I seem to have a bit of a different problem. In my situation after the exception is thrown initially it works fine (and no; I did not turn off exceptions). So what I have done is on the exception I simply repost: IdHTTP1.Post(....... I have put the libeay32.dll and ssleay32.dll ...

Full Text Search with Firebird and Delphi

I'm looking into implementing full text search on our Firebird database. Our requirements are: Every field in several tables should be indexed. When a result is found we should be able to find out the originating table. The index can be stored in the database or in the file system. The results of the search (BigInt primary keys) must b...

Securing/Encrypting embedded database in Delphi

Which method do you suggest to efficiently secure your embedded database in Delphi applications? Here are the methods I've tested: Using Molebox Pro Pros - Fast, unpacking is not child's play, no additional task/coding Cons - Database will be read-only, same drawbacks as exe compressors Using DISQLite3 Pros - Overcome Molebox's r...