delphi

Using Direct Connect access to ArcGIS databases in standalone applications

Hi everybody I work in an enterprise designing, creating and maintening custom applications on the base of ESRI ArcGIS. Some customers use Direct Connect, to connect to databases stored on Oracle or MS SQLServer. I have a problem with a standalone application for several months now. I have an application, written in Delphi. One of ...

could not create output file""

Hello ! I was trying to compile and project file ,taken freshly from the VSS and it was throwing an error could not create output file" release\emsDataAccess.dcu " . Strangely the error was pointing to line "90" where as the last line of code in the error-file (emsDataAccess.pas) is"75". Kindly help! Regards -Vas ...

project "ctsMgr.exe" raised exception class EDBEngineError with message "unknown database. Alais:.."

Hello All! I was running a Delphi(4) exe . It ran well for few seconds, then raised the error project "ctsMgr.exe" raised exception class EDBEngineError with message "unknown database. Alais:PerDBS". Process stopped. Use Step or Run to continue. Does the above error imply that Database named "perDBS " is undefined? Should ...

Maximum Length of String in Delphi property Lines of TMemo

I've been searching the reason why the maximum length of String in a TMemo.Lines is 1024, but not found yet. I have a text file which contains delimited / csv data which length is around 2000 characters. I use a memo to preview it before I process the file. memo.Lines.LoadFromFile(textFile); I have set the WordWrap to FALSE, and scrol...

How do you display an XMPP (Jabber) vcard photo in Delphi?

How can I read a photo from an XMPP vcard (an avatar picture, which I think is in JPEG format) and display it in a Delphi TImage control? The XMPP server sends this XML: <presence id="e3T50-75" to="cvg@esx10-2022/spark" from="semra@esx10-2022" type="unavailable"> <x xmlns="vcard-temp:x:update"> <photo>897ce4538a4568f2e3c4838c69...

Resolving a bug in the TDatasetProvider (the hard way) in Delphi 2010 or Delphi 2009

Hello Folks, Like every year I receive a new Delphi version as SA owner and this is what I do : Install delphi version XX. Run delphi version XX Insert a TSQLConnection component. Connect it to a Microsoft SQL Server 2000 who will be with us at least for six more years. Insert a TSQLQuery with a 'select top 1 * from myTable' which is...

Delphi 2006 refactoring keyboard mappings

How do I change the default refactoring keyboard mappings in Delphi 2006? ...

Is it possible to sort a TDBGrid on a lookup field?

I have a DBGrid with a column based on a lookup field. How can I set it up so that when a user clicks on the column title, it will sort by that field. My problem here is that I can't figure out a way to create an index on a lookup field. I'm using Absolute Database for this, but most things that work with the BDE or TClientDataSet w...

What is the compiler version for Delphi 2010?

In Delphi 2010, if I want to do this: {$IFDEF VER999} //some delphi 2010-specific code here {$ENDIF} What version # do I need to use in place of "999"? ...

Delphi 2010 How to Set The Initial Folder of the IDE Open Project Dialog

Does anyone know how to set the initialfolder of the open project or open file dialog in the Delphi 2010 IDE? For the first time I installed D2010 on a USB hard drive and the open dialog always reverts to the windows drive -D while Delphi is on Drive R. ...

Help using Rijndael Algorithm in Delphi 2007. Net

Hi, I'm working in Delphi 2007. Net, where I can find an example of using the Rijndael algorithm. Bye. ...

How can import a wsdl file in Delphi offline?

Hi, I have a web service and an outsource company will use my service. I don't want to open my service to the internet. I want to give only wsdl file to the outsource company. They use Delphi. Is this possible importing a wsdl file in Delphi offline? ...

Delphi: Is there a way to access records in a TClientDataset besides moving the cursor

I want to append a record in a TClientDataSet based on another record (in this same TClientDataSet). Problem is that i can't access another record in the TClientDataSet because the cursor is pointed to the row i'm appending. And i can't find another way to access the other records in the same TClientDataset. Of course i can use an extr...

Plugin for VS 2008 - With Structural Highlighting - Support Syntax Delphi Prism

Hello, Anybody know any plugin for Visual Studio 2008 that has the ability to "Structural Highlighting" and Syntax support for Delphi-Prism. Currently use Castalia and CnPack, but just work on Rad Studio. I've also used Codekana, but does not support the syntax of Delphi Prism. Bye. ...

Single-user source control?

Hello Searching with '[Delphi] "source control"' didn't return much, so here goes: For those of you Delphi programmers working on your own, what source control do you like? I know about TortoiseSVN (which can be used without a server), but I'd like to know if there are better options before choosing it. Thank you. ...

How to write avi file from sequence of TBitmaps?

I found a way to write avi from BMP files: http://www.delphi3000.com/articles/article_2770.asp?SK= I want to write avi from array or TList of TBitmaps? ...

Calling helper function in Evaluate/Modify (Ctrl+F7) window

Lets say i wrote helper for TStringList TslHelper = class helper for TStringList function DoSth: boolean; end; Then ive included this helper (unit in which helper is defined) in unit i want to use it. During debugging i hit Ctrl+F7 and i want to evaluate: someStringList.DoSth I cant get it to work. Is it possible? Regards ...

How can I resolve this error in Delphi 2010: "[DCC Error] E2223 $DENYPACKAGEUNIT 'OleAuto' cannot be put into a package" ?

I am converting a component package from Delphi 2007 to Delphi 2010. When I do a full build, it compiles and begins to link. During linking, I get two messages: [DCC Warning] MyPackage.dpk(235): W1033 Unit 'OleAuto' implicitly imported into package 'MyPackage' [DCC Error] E2223 $DENYPACKAGEUNIT 'OleAuto' cannot be put into a package ...

Does building a Delphi project with MSBuild create .Net dependencies?

This may be a stupid question, as I'm not sure how MSBuild works with Delphi under the hood, but we have a Delphi app that needs to run with no .Net dependencies, and since we have updated our build process (now using team build with msbuild) the app won't run without .Net. I am just trying to narrow things down, so I'd appreciate any he...

mark all the instances of a word (Delphi, RichText)

OK, this is a problem that's been nagging and I can't see to find a definitive answer. How do you find and mark all instances of a word? What I mean is, I search for a word (say: Person). If the word exists the I mark (using red or whatever color) all instances of that word in the richedit. If I press Esc then it gets deselected. Any i...