delphi

How do I uninstall JVCL?

I want to uninstall Jedi because it replaces my GIF handling library. Even though I uninstalled JVCL, Delphi keeps using the Jedi gif library and it keeps adding the JVGif unit to my project which adds extra compiling time. ...

Any Delphi trending controls available

I need a control to add data trending to my application. Is anything available or do I need to use a graphing control and add my own trending features? ...

Delphi Assembly Function Returning a Long String

I am trying to learn inline assembly programming in Delphi, and to this end I have found this article highly helpful. Now I wish to write an assembly function returning a long string, specifically an AnsiString (for simplicity). I have written function myfunc: AnsiString; asm // eax = @result mov edx, 3 mov ecx, 1252 call Syste...

Quickly determining if a folder contents have been modified

I need to determine which folders contain files that have been modified "recently" (within a certain interval). I notice that folder datestamps seem to get updated whenever a contained file is modified, but this behaviour doesn't propagate up the tree, i.e. the datestamp of the folder containing the folder that contains the modified fil...

Is it possible to change the color of a row in a virtual string tree?

I want to change the color of text in a specific row of a virtual string tree. is it possible? ...

Is there a way to set response timeout for Indy Tidhttp gets?

I have built a simple website monitoring application using Indy TIdhttp component. I want to detect when a designated page is not returned within a specified time frame (I am using 5000 milliseconds). As a test I created a page on a web site which intentionally takes 15 seconds to respond. But I can't get my procedure to "give up" aft...

Sending Delphi string as a parameter to DLL

Hi. I want to call a dll function in Delphi 2010. This function take a string and write it to a printer with USB interface. I do not know in which language the dll is developed with. According to the documentation the syntax of the function is: int WriteUSB(PBYTE pBuffer,DWORD nNumberOfBytesToWrite); How can I declare and use my func...

How can I supress Delphi DataSnap error message dialogs?

We run a DataSnap Delphi 2009 application on Windows 2003 Server. DataSnap Client and Server are on the same computer, using DCOM over Borland Socketserver. The client runs a background batch job. Sometimes, we discover that the client can not connect to the server application and displays a message dialog on the server desktop indicati...

delphi non visual component image

I am building a delphi non-visual component. How do I set the image I want it to have in the IDE? ...

Installing a delphi 7 isapi web service

Hello guys, I have developed an isapi web service in delphi 7 and I need to install it in a server so it can be consumed by a c# application. I copied the dll of the isapi in a folder and created a virtual directory in the IIS of the server. When I call the web service from the browser (http://localhost/webservice/ws.dll) the website ...

Parent/Child relationship with TControl

I want to implement Parent/Child relationship with TControl and I mean to be able to have a TControl that can serve as a container for another TControl. So far as I could see you can only do to that with TWinControl, why is that? and how I can make it to work for TControl? ...

OpenGL: Increasing the number of the lines changes the antialiasing?

I am writing a paint program in Delphi. The user clicks 2 points on the screen and a line is drawn between them. I want the lines to be anti-aliased. I put this code in create() procedure of the OpenGL class (which is called just 1 time in the start): glEnable(GL_LINE_SMOOTH); glEnable(GL_BLEND); glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINU...

Why does a "T" icon appear in Delphi's "Search for Usages" dialog?

Instead of the normal IDE application icon, Delphi 2009 shows a small icon with a "T" in the "Search for Usages" dialog (see image below). What does this symbol mean? ...

Microsoft speech api 5.1 GetVoices returns voices that don't exist on Windows 7.

I'm migrating from XP to Windows 7 64 bit. My app which I compiled on my XP machine works properly on XP. However when I run the exe on my W7 machine, the list of voices returned by GetVoices is as follows: Microsoft Anna Microsoft Mary Microsoft Mike Sample TTS Voice. Checking the W7 Speech Properties dialog shows that only Microsoft...

How do I make the "show/hide desktop icons" setting take effect?

The code below calls SHGetSetSettings function to hide desktop icons but it just unchecked "Show desktop icons" from the view menu. I called SHChangeNotify(SHCNE_ASSOCCHANGED, SHCNF_FLUSHNOWAIT, nil, nil); to update the desktop but that doesn't work? var lpss: SHELLSTATE; begin lpss.Data := High(cardinal); lpss.Data2 := Low(cardi...

How do I avoid an "abstract error" with a TCustomGrid descendant?

Whats the minimum I have to do to descend a new control from TCustomGrid, and get it on a form in the IDE without getting 'Abstract Error' within the IDE? I have tried everything for days, but Im a bit of a delphi noob atm, zero percent success with TCustomGrid :( If someone could help me out just getting a basic descendant of TCustomG...

Como saber quem está enviando dados na USB ? | How to know who is sending data on USB?

Como faço para saber se é ou o meu teclado que é USB ou o meu leitor de barcode que também é USB ? No delphi preciso saber quem enviou os dados ? How do I know whether it is my keyboard or my USB barcode reader which is sending keystrokes to me program? In Delphi, I need to know who sent the data? (courtesy of Google Translate) ...

Why does IOHandler.ReadStream blocks thread when client connects to server in Indy?

Hi, Today I faced a weird behavior using Indy 10 (shipped with Delphi 2010). Here is the problem: Suppose we have a IdTcpClient in our client, and a IdTcpServer in our server app, and this code in OnExecute event-handler for our IdTcpServer: procedure TForm1.IdTCPServer1Execute(AContext: TIdContext); var AStream: TStringStream; S:...

Delphi, switching from [Uni]SynEdit to SyntaxMemo SDK

Hello, we're about to switch from SynEdit (Unicode version) to SyntaxMemo SDK, however prior to the final decision we need to estimate the real cost of the switch. We've been using custom syntax highlighter for SynEdit built to suit our needs. Now it'll be neccessary to rewrite it, in order to work with SyntaxMemo SDK. We have already be...

'23/02/2011 12:34:56' is not valid date and time

In my code I am facing a problem. Example code: var d1: tdatetime begin d1 := strtodatetime('23/02/2011 12:34:56'); end; but it's giving the error: '23/02/2011 12:34:56' is not valid date and time What's wrong with what I am doing? ...