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...
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;...
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 can I detect all WiFi networks availables using Delphi?
...
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?
...
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...
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
...
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...
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_...
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...
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
...
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...
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...
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
...
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...
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 ...
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
...
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 ...
Is it in Delphi (Win32) possible to declare a whole class (not only a function of the class) as static?
...
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 ...