delphi

How do I make my Delphi 5 app display password "blobs"?

Pretty simple one, but I can't find the answer. I'm building an app in Delphi 5 Enterprise, and want my app to use the new bold black dot in a password field instead of an asterisk. How can I do this? ...

Is FindFirst supposed to return found files in Alphabetical order?

I had tought that FindFirst found files in alphabetical order but recently i am finding that while this is true for the most part a few files are not in alphabetical order. if FindFirst( AProgramPath, faAnyFile, ASearchRec ) = 0 then repeat AFilename := ASearchRec.name; until FindNext( ASearchRec ) <> 0; FindClose( ASearchRec ); in ...

How do I stream ReportBuilder Reports as PDFs on Intraweb using ExtraDevices?

We use Intraweb for our Web Applications and also have been using ReportBuilder for reporting for our internal windows applications. We also have ExtraDevices which we've used to allow us to save our ReportBuilder reports as Excel files. Now, I am want to produce a report on our web applications as a PDF file. I have an example on h...

Any way to "force" a program with a hung OCX to close?

My Delphi 7 program uses an OCX to control some hardware. I don't have any sample code so I am working through loading/using/unloading the control correctly. Unfortunately, if I use the hardware and load the OCX, the main process will not completely quit when the application closes. If I use the hardware, the OCX loads and everything w...

How to return an instance from a DLL?

Hello buddies: I am programming a DLL. I have to return an instance of TBitmap to the host application. The DLL has another UNIT, wich is a Form, that it has a TImageList for storing images. I wrote a function that I want to return an Image from the TImageList (from the DLL to the host application. How can I do this? Thanks, Yulién. ...

Convert UTC string to TDatetime in Delphi

eg. var tm : string; dt : tdatetime; tm := '2009-08-21T09:11:21Z'; dt := ? I know I can parse it manually but I wonder if there is built-in function or win32 api function to do this ? Any help would be appreciated. ...

Delphi 7 Personal, MySQL using libmysql.dll + UTF8

Hi, I'm using Delphi 7 Personal. To access MySQL database I'm using libmysql.dll + very simple wrapper, which is good enough for me. Except one thing ... it doesn't seem to handle Utf8... is that possible somehow to pass Utf8 strings from libmysql to Delphi? Please keep in mind I'm not using commercial delphi, this means no ADO / dbExpr...

Rules to Develop a Delphi Windows 7 App

Where can I find the best set of rules to follow for developing a Delphi application for Windows 7? ...

Delphi Conversion Unicode Issues

We have large commercial app that we want to convert from Delphi 6 to 2010. Approx 10 3rd party component sets, all with source code... I have heard warnings about Unicode with 2010 - Does anyone have experience and or suggestions? ...

How to explicitly pass a program flow into the finally block in C#?

Hi guys. In Delphi I could do something like this: try if not DoSomething then Exit; if not DoSomething2 then Exit; if not DoSomething3 then Exit; finally DoSomethingElse; end; In other means if method DoSomething results false then the program flow is transffered to the finally block and DoSomething2 and DoSomet...

ApdComport reporting ECommNotOpen when calling ProcessCommunications

I have a fairly complex application in Delphi 2006 that communicates through an ApdComport using a separate form in another thread. The communication used to fail quite a lot and I found a couple of calls to Application.Processmessages in the loops and reconstructed it using the ApdComport.ProcessCommunications instead. I don't really...

How to use AccessibleObjectFromWindow WinAPI function in Delphi?

http://msdn.microsoft.com/en-us/library/dd317976(VS.85).aspx STDAPI AccessibleObjectFromEvent( __in HWND hwnd, __in DWORD dwObjectID, __in DWORD dwChildID, __out IAccessible **ppacc, __out VARIANT *pvarChild ); What is IAccessible** equivalent in Delphi (2009)? ...

Shuffle Text File Delphi Source or anything else

Hi I have a stringlist with 10 000 entires. I have a shuffle routine, but accessing any of the items is taking a lot of time. Going thtought all 10k items takes a huge amount of time. I want to save it do disk and then do a shuffle on the file using another method. Any suggestions? Any source code welcome, Delphi preferable. Thanks ...

Class Helper for generic class?

I'm using Delphi 2009. Is it possible to write a class helper for a generic class, i.e. for TQueue . The obvious TQueueHelper <T> = class helper of TQueue <T> ... end; does not work, nor does TQueueHelper = class helper of TQueue ... end; ...

Where can I find a good Delphi or Object Pascal implementation for a circular buffer

My main purpose is to have a generic data buffer that I can use for transfers. I'm thinking of something along the lines of what XCopy did. Is there something already made out there or a good example one can follow? ...

Is there some way to load the TSQLConnection params from an ini file in design time?

I have a SQLConnection which is shared between projects, in runtine it reads the configuration from an ini file, is there some way to load this same configuration in design time? ...

Iterate through items in an enumeration in Delphi

I want to iterate through the items in an enumeration. I'd like to be able to say something like this: type TWeekdays = (wdMonday, wdTuesday, wdWednesday, wdThursday, wdFriday); ... elementCount := GetElementCount(TypeInfo(TWeekDays)); for i := 0 to elementCount - 1 do begin ShowMessage(GetEnumName(TypeInfo(TWeekdays),i)); end; ...

Button component affecting the parent Panel in Delphi

I'm writing a program consisting of dynamically created panels that each have a few components in, including a delete and add panel buttons. Each panel displays 20 pixels times the panel number below each other, OnClick for add must add another panel to the end of the set and OnClick for delete must destroy its parent and then move all t...

Are there any advantages in using const parameters with an ordinal type?

Now I know marking string parameters as const can make a huge performance difference, but what about ordinal types? Do I gain anything by making them const? I've always used const parameters when handling strings, but never for Integer, Pointer, class instances, etc. When I tried to change that, I noticed that in many cases I had to c...

Save Printer Setup Parameters

I am writing a program using Delphi 2006 and storing data in XML files and a Firebird database. I create reports using either FastReports, Excel or QuickPDF. I allow my users to package several reports together and be directed to a destination of their choice, whether it is a PDF file, a printer, the screen, or email. I want my users ...