delphi

Is there any alternate way to supply similar functions as COM does?

Window's COM allow us to wrap our application function for out-of-process invocation. If the COM interfaces are well defined and design, it is certainly great to consume the services via scripts and any programming platform that support COM/Automation/Active-X. I am just wondering if there exist any alternate methods to design of what ...

How to implement the OnResizeEnd Event for TFrame ?

Hello, in the middle of the application is a frame. After resizing i need to rearrange controls on this panel (doing this in the resizing event is too busy). Its more useful if this can be done once after all the resizing. But how? Thank you for your help ...

Delphi non visual TTree implementation

Hello, I'm looking for a non visual persistent tree (TStringTree) implementation. If someone known any good implentation of it, please let me know. Thanks. ...

Change username programmatically when connecting to a Sql Server using Windows authentication from a Delphi application

I have a Sql Server that uses Windows Authentication. I want to connect to the server from a Delphi application. By default, SQL Server will assume the credentials of the user that launches the connecting process. This means that to change the login, I currently have two options: Log off and Log in as the desired user, then run my a...

Importing schema with XMLmapper in Delphi ?

Hi, I try to import some valid schema (for xmlspy and oxygen) with XMLMapper in delphi and I have this error "Error Flux if:InfofileType unknown". I use namespace and this type is define in another file. Is there a way to solve this ? (I also try with Delphi 2010 demo and it still not work) <?xml version="1.0" encoding="UTF-8" ?>...

How to do word wrap in a DevExpress TcxGrid?

I've got a long line of text that would be a lot easier to view if it would just word wrap around multiple lines, but I can't seem to find the option for it. Does anyone know how to enable word-wrap functionality? ...

Is there a lock() statement in Delphi Prism?

What is the equivalent of the c# lock() statement in Delphi Prism? In VB.Net it's synclock() I believe. Thanks in advance. ...

How to check if string is a valid DateTime Format string in Delphi

I want user to be able to manually enter format of the datetime fields in the program. I have Tedit component. For example if user enters 'HH:nn', then this is a valid datetime format string and all datetime components should change format property to this, but if he enters 'asd', it is not. Is there a quick way to check this, without wr...

Setting page margins in Rave Reports

I am using Rave Report to print my reports in Delphi. Is there a way i can set the page margins(left, right, top and bottom) for printing my reports? please help me.... ...

Windows user profile seems to be blocking certificate auth on webservice calls

I have a Delphi app that's running on Windows Server 2003. The app communicates with a webservice on another server that is protected by a Cisco ACE XML Gateway requiring a certificate for client authentication. When I run my app as a local administrator on the box I have no problems connecting to the webservice. When I run it as a me...

Reading web pages / unicode

hello I have this function in Delphi 2009 /2010 It returns garbage, now if I change the char,pchar types to Ansichar,Pansichar it returns the text but all foreign unicode text is garbage. it drive me banana I have been trying all kind of stuff for 2 days now I thought I understoff this unicode crap but I guess I do not Help please tha...

update TListView item

hi all I want to update values in a TListView. I tryed this ... lvProcess : TListView; liEdit : TlistItem; ... liEdit:=lvProcess.Items.Item[1]; liEdit.Caption:='11'; liEdit.SubItems.ValueFromIndex[0]:='22'; liEdit.SubItems.ValueFromIndex[1]:='33'; ... this should do what I want, but after this, the values of the subitems ...

Library to parse SQL statements.

I would like to be able to parse an arbitrary SQL SELECT statement and retrieve the various component parts (columns, relations, JOIN conditions, WHERE conditions, ORDER BY columns), ideally using Delphi. A quick google search shows several different freeware products, but it's not clear if they are complete and/or under active developm...

Delphi ADOQuery result concatenation using ClientDataSet

I have written an application that allows a user to define a query, run it using a TADOQuery component, and save the report to their PC as an XML document (SaveAsFile passing in pfXML as the Format parameter) for offline viewing. This works fine. What I now need to do is concatenate the results. What I mean by this is that I need to get...

How to create calculated field in Access Database using SQL during runtime in Delphi

I am creating a table during runtime. This is how I do it: AdoCommand1.Connection:=AdoConnection1; cs:='CREATE TABLE '+edname.text+' (' + 'ID Integer IDENTITY(1,1) NOT NULL UNIQUE PRIMARY KEY,' + '[Date Added] DATETIME,'+ '[Name] TEXT(255))'; ADOCommand1.CommandText:=cs; ADOCommand1.Execute; I need to add a field "age" which should be...

Delphi + Transparent forms with parent.

I want to create a form, but just use it to keep an image. (Like a splash form) To create a form like these I use these lines: SetWindowLong(Handle, GWL_EXSTYLE, LexStyle or WS_EX_LAYERED); UpdateLayeredWindow(Handle, 0, nil, @LBitmapSize, LBitmap.Canvas.Handle, 0, @LBlendFunction, ULW_ALPHA); This image is a PNG image with transpa...

Does Visual Studio 2008 have something like Delphi's structure view?

I use Delphi 2007 in my daily work and have now start to look at VS2008 and C#. One confusing thing compared to Delphi is the design editor in VS. Here is the Form Designer in Delphi As you see on the left I have a hierarchy of components. Some of them like TPanel and TGroupbox can contain other components. It is very easy to change ...

Pre-sorting analysis algorithm?

It's a well-known isssue with Quicksort that when the data set is in or almost in sort order, performance degrades horribly. In this case, Insertion Sort, which is normally very slow, is easily the best choice. The question is knowing when to use which. Is there an algorithm available to run through a data set, apply a comparison fact...

How can I enable my 32-bit Delphi application to use 4gb of memory on 64-bit windows (via Wow64.exe)?

According to this MSDN page: WOW64 enables 32-bit applications to take advantage of the 64-bit kernel. Therefore, 32-bit applications can use a larger number of kernel handles and window handles. However, 32-bit applications may not be able to create as many threads under WOW64 as they can when running natively on x86-b...

Setting up background images for forms in Delphi

How can I make my program load an image and make it the background for a form? I need the exact code for it. I've looked all over the internet and the only things I've found are various tweaks and fixes to make backgrounds work as intended in special circumstances. I've also tried some Delphi books I have and I can't find it anywhere. ...