How to escape quote PHP strings generated by Delphi?
My code is littered with things like this Write (thePhpFile, ' echo "<option value=\"' + theControl.Name + '_selection\">" . $' + theControl.Name + '_values[$_POST["' + ...
My code is littered with things like this Write (thePhpFile, ' echo "<option value=\"' + theControl.Name + '_selection\">" . $' + theControl.Name + '_values[$_POST["' + ...
See http://stackoverflow.com/questions/3243285/how-to-escape-quote-pph-strings-generated-by-delphi I am just interested to hear if anyone has used Delphi (or possibly BCB) as a code generator for PHP ... (or thoughts about code generation from one language to another in general) Hmm, any good books about code generation ? ...
I have multiple cursors (which are actually forms) that can be controlled by their respective mouse. (1 cursor for 1 user). I use SetCursorPos to position the default cursor (the original system cursor) in a position that will not take away the focus from my application, and use ShowCursor(false) to hide it. I have a class that gets ...
Does anyone know how to get the width and height of text in a TRichEdit control, in the same way that you would use TextWidth and TextHeight on a TCanvas? The reason I need to know this doing this is I have a RichEdit on a non-visible form that I copy the contents of to a canvas using Richedit.Perform(EM_FORMATRANGE, ...). The problem...
Having a strange problem where a print occasionally is not being printed The scenario is that we print barcode labels with a barcode printer (Zebra LP2844). Printer is plugged into the TerminalPC and then shared. Printer->TerminalPC -> Terminal Server. Session on TerminalServer is using Printer as \TerminalPC\Printer When logging prin...
I'm using Delphi 7 and QuickReports on Windows 7. Normally QuickReports require a DataSet generated by a query, but I want to make a report from the contents of a StringGrid as though the StringGrid is a representation of the results of a query. How? ...
I want to use IFileOperation CopyItem to copy a file from a directory to another directory is there a simple example in delphi 7? ...
I am trying to format a Delphi TStringgrid depending on cell contents and position. Whilst I can change the cell colour and shape depending on the cell contents I am having more problems with the cell borders. I want to be able to have a thicker cell border on one side or the other every n columns Any pointers? Cheers Dan ...
(please read the update section below, I leave the original question too for clarity) I am inserting many files into a SQL Server db configured for filestream. I am inserting in a loop the files from a folder to a database table. Everything goes fine until I try to insert a 600 MB file. As it inserts it there is a +600MB memory usage...
Is there a spell check in Windows (like in Mac OS X)? If yes, is there any way to use on a richedit on delphi 7? I've been trying to find that answer on the internet but so far no answer. code is appreciated. thanks! ...
We have a Delphi program whose task is like a service program. It watches a particular folder for a certain period, and it works great on Windows XP and 2003, but on Windows 2008r2 64bit, when it wants to create an automatic folder, it will show this message: The ... folder does not exist. The file may have been moved or deleted. T...
I need to convert PDF pages to TIF files from within my app (or using a console app we shell out to...) I've tried some 3rd party tools/apps, but just to load one of my pages, they can take literally an order of magnitude or more than Acrobat Reader on the complex graphics (blueprints originally created by AutoCAD). Are these kinds of ...
I've just been debugging a problem with a function that returns a string that has got me worried. I've always assumed that the implicit Result variable for functions that return a string would be empty at the start of the function call, but the following (simplified) code produced an unexpected result: function TMyObject.GenerateInfo: s...
Because MS only supports their own languages in code equivalent to Delphi *.dcu, and because their is no msdn for library P/invoke. I have no connectivity to P/invoke Has any one got any idea's for connectivity As a dll do I use loadlibrary and doing so its defeating the purpose Is P/invoke just extra code to connect to .com The only...
I need to implement an IFilter in Delphi 2010 that can search through Office 2007 docx files and return the text found in the document. The ifilter also needs to use the IPersistStream interface. Thanks ...
How can I get the version IE installed in my computer? ...
Hi, In Indy when we are sending some strings to the server , they change and will be shown in new format . for example i tried to send a binary file(File.exe) with "WriteLn" command in indy : Ms.LoadFromFile(FileAddress); Ms.Read(B, Chunk); for j := low(B) to high(B) do begin Part := Part + chr(B[j]); end; ...
Delphi implementation of the TFlowPanel control seems to lack an important feature of the C# version, the AutoScroll one. The C# control with AutoWrap= False and AutoScroll=True behave like a horizontal scrollable list of controls. How can i mimic the behavior of the C# version of the control ? Thanks, Alin P.S. I know i can use TS...
We need to be able to inform a Delphi application in case there are changes to some of our tables in MySQL. Delphi clients are in the Internet behind a firewall, and they have to be authenticated before connecting to the notification server we need to implement. The server can be programmed using for example Java, PHP or Python, and it ...
I am attempting to install the IP3000 components into my Delphi 6 environment. I figured I'd see if any of you have had experience getting it installed. From the files I have, there seems to be an installer missing (I have the UNWISE.exe). I've tried including just about every folder in the environment's library path and browsing path a...