delphi

How to tell if a Delphi app "owns" its console?

A Delphi console application can be run from the command line of an existing console window, and it can be run by double-clicking on its icon. In the latter case it will create its own console window, and close it once the application terminates. How can I tell if my console application has created its own window? I want to detect thi...

ZeroConf/Bonjour Code that works in Delphi 7 not working in 2009

I have the following declaration for DNSServiceRegister: function DNSServiceRegister ( var sdRef: TDNSServiceRef; const flags: TDNSServiceFlags; const interfaceIndex: uint32_t; const name: PUTF8String; //* may be NULL */ const regType: PUTF8String; const domain: PUTF8String;...

Online Code Beautifier And Formatter for Delphi or Pascal

Do you know any online Code Beautifier And Formatter for Delphi or Pascal Sintax? only i can found this tool , but only highlight the source code. Bye. ...

How to enumerate all available WiFi networks using Delphi

How can I detect all WiFi networks availables using Delphi? ...

(delphi)print image problem

hi I'd drawing in image canvas using lineto function ,and then printed that . but the printer creates an empty page .i used printer.canvas.StretchDraw but if the image been saved then load on, image printing would be successful. anybody knows the reason? ...

WinForms floating windows (like Delphi7 IDE)

I want to setup my WinForm to look like the Delphi7 IDE. Basically that means the window has no background (the desktop shows through), and child windows float around. Here's a sample image: I can handle the floating windows, but how would I go for the main window (the menu bar and the toolbar)? What are the WinForm properties require...

dynamic icons with the virtual tree component for delphi

Hello, I need to know how to store and load two different icons for each node in the virtual tree component , also the two icons are different in size Thanks ...

Missing ssl library when connecting to pop3 over ssl from an activex developed in delphi-7 whith indy client 9 ?

Hello, I'm developing an activexform with delphi 7 using the indy client (v.9) to connect to pop3 over ssl. Unfortunately when I load the activex in the web browser it tells me that it can't find the SSL library (ssleay32, libeay32). Does anybody know how can I work around this? (or Does anybody know any other method to connect to pop3...

Delphi SearchText Issue

Hello, For some reason, using SearchText := 'Program Files'; ReplaceText := 'Program Files (x86)'; SearchAndReplace(SearchText, ReplaceText); Would do absolutely nothing, it just won't change text, works fine when using any other text. Is this some sort of "Reserve" word? Or ( ) is what makes it do not work? procedure Tfc_...

Rave Reports - How to find which File format user selects during setup?

I am using Delphi 7. I have the reporting mechanism implemented using Rave. Also exporting to HTML, PDF and TXT is used. There is a problem though: When user saves report into file directly (without previewing it first), file extension is not added to the filename by Rave. So the file created looks like Report (instead of Report.pdf) an...

How to generate a tinyurl in Delphi

I have a chat program, written in Delphi 7, that I would like to replace long url's posted, with a smaller tinyurl as displayed. I've Googled but haven't found anything helpful quite yet. Thanks in Advance Mark ...

How does one access the 'NameThreadForDebugging' in Delphi 2010

Hi How do I access the 'NameThreadForDebugging' in a delphi Thread in Delphi 2010 ? type TMyThread = class(TThread) protected procedure Execute; override; procedure UpdateCaption; end; implementation procedure TMyThread.UpdateCaption; begin Form1.Caption := 'Name Thread For Debugging'; // how I get 'TestThread1' d...

Regsvr32 and Desktop authority

I am registering a delphi assembly using regsvr32. We are currently using Desktop Authority to deploy our installation package for the .NET application. We are needing to use the delphi assembly in our .NET application so i have to register the assembly with regsvr32 with the installation. Although i have ran into problems if i regist...

Scrolling issues with TRichEdit in Delphi

Hi I am adding lines to a TRichEdit how do I keep focus on the line that has just been added? For Idx := 1 to 1000 do RichEdit.Lines.add(IntToStr(Idx)); EDIT I just what the bottom line of the richedit to show what was just added and all the other lines to scroll up ...

How to program number of your threads in Delphi

I found this on the Dr Dobbs site today at http://www.ddj.com/hpc-high-performance-computing/220300055?pgno=3 It's a nice suggestion regarding thread implmentation. What is best way of achieving this with TThread in Delphi I wonder? Thanks Brian === From Dr Dobbs ============== Make multithreading configurable! The number of threads u...

"bpl" load in IntraWeb

Hi!!! I am setting up a module of "bpl" load in IntraWeb, Delphi2010, and I found the following problem: I don't get to create an instance the application to not to be this is as an internal form. . procedure CargaDoSubModulo; type TIWFormClass = class of TIWForm; var Integra : IIntegracaoIW; Formulario : TIWForm; intClas ...

Using Delphi or FFMpeg to create a movie from image sequence

Hi all My Delphi app has created a squence called frame_001.png to frame_100.png. I need that to be compiled into a movie clip. I think perhaps the easiest is to call ffmpeg from the command line, according to their documentation: For creating a video from many images: ffmpeg -f image2 -i foo-%03d.jpeg -r 12 -s WxH foo.avi ...

How do I get TAnimate's Common AVIs to work on Vista and Win7?

I have a Delphi 2007 application that has a TAnimate control with a FindFile Common AVI. It works perfectly when the application is run on Windows XP, but nothing ever appears on Windows 7. I've heard it now requires its own thread, but I am not certain. Does anyone know how to get TAnimate's Common AVI control to work on Windows 7 (or ...

Static classes in Delphi (Win32)

Is it in Delphi (Win32) possible to declare a whole class (not only a function of the class) as static? ...

Why does ADO Next record processing slow down in Delphi?

I had a Delphi 4 program that I developed many years ago that used Opus DirectAccess to sequentially search through a Microsoft Access database and retrieve desired records. Delphi 4 did not have ADO, so that's why I was using DirectAccess. But I've now upgraded to Delphi 2009 and converted the program to use ADO. What I found was that ...