Delphi D2009 for Win32 and the CodeDom
Does anyone know whether it is possible (theoretically or in reality) to use the CodeDom that seems to be provided in Delphi's .NET counterpart? ...
Does anyone know whether it is possible (theoretically or in reality) to use the CodeDom that seems to be provided in Delphi's .NET counterpart? ...
Is there a way to (read-only) access any arbitrary memory location without running into an access violation? I thought that each process has its own virtual adress space and that it can read all available memory locations...seems not to be the case, since my program hangs if I do something like var IntPtr : PInteger; AnInteger : Int...
Hi all, I have a legacy application to maintain. Currently, releases are built from one particular developper workstation, that is a bad, bad habit. I asked for a virtualized build server to automate the build from one centralized environment. The only problem is that the server they gave me run with windows server 2003, and they will ...
Going through some of my older Delphi projects and upgrading them to D2009, as I find this version a great improvement (Generics.Collections - wow! ;)) to all previous releases, I encounter various problems. This one I managed to solve but the solution does not seem half as elegant as I believe it could be. (Note, I haven't written Delph...
Are there any YAML parsers or YAML Serialization libs in Delphi? ...
I'm looking after a way to AlphaBlend a child form, if possible using layered windows as there will be interactive controls behind it. The problem is I have a component in a regular TForm that paints multiple visual layers (drawings, pictures...). At some point I need to instantiate an editor control on this form (in-place), this contro...
I use this line to register a class with the Delphi registry for Soap elements: RemClassRegistry.RegisterXSClass(ToHeader, ADD_URI); In the Soap request message, I see this: <NS1:ToHeader> ... </NS1:ToHeader> Is it possible to change the class registration so that it renders the element with a different name, like: <NS1:To> ... ...
What would be the best way, in delphi, to create and store data which will often be searched on and modified? Basically, I would like to write a function that searches an existing database for telephone numbers and keeps track of how many times each telephone number has been used, the first date used, and the latest date used. The data...
I have a Delphi application that connects to an oracle database. When I try to log in as SYSDBA, I get the error: ORA-28009: connection as SYS should be as SYSDBA or SYSOPER When I try to log in with a user of "SYS AS SYSDBA", I get the error: ORA-01017: invalid username/password; logon denied How can I log in as sysdba using a db...
When I use the following code in a newly inserted record in a TClientDataSet: cdsMyDateField.OldValue <> Null I get an EConvertError: ''0.0' is not a valid timestamp'. Looking at Delphi's VCL's code, it tries to convert the value to TDateTime which results in this Exception because the value (Null) is an invalid DateTime, but as I'...
I have an application with a submenu of places each with unique shortcut. Until now this submenu is static but often there is a need to add a new place to the menu and assign a new shortcut. The application have a unit Clientdata that contains an TActionManager that holds the needed actions for buttons, menus and also the submenu I menti...
I'm using the OnIdle-event for some simple animations, and it works all right. The trouble, though, is when the user starts to move or resize the window, the OnIdle-event stops firing until the move/resize-operation is completed. I need to detect when this happens, so that I can pause all animations. But how do I detect movement of the...
on click event i would like to extract the x,y cordinates of the mouse, in fact i would like them in relation to the image but in relation to the form or window is just as good. ...
I use Delphi 7 + Zeos + MySQL, and I got a problem when I try to post Master table, the Details datasets are posted first, raising a referencial integrity exception in data base, 'couse details tables needs the ID of the Master table. Can I revert this behavior? Can I persist the master table before the details? ...
I have a TcxDBColorCombobox and I want the drop down to not include the system colors like clBtnFace, so it only includes colors like clRed. Additionally I would like it to include clWindow and clWindowText, but I can add those as custom colors if necessary. The process should be the same as for TcxColorCombobox. I am sure I will figu...
The target app is written in Delphi (win32 not .NET) and is closed-source. The action I want to invoke is called Copy, but there is no obvious keyboard shortcut. (Ctrl+Insert does the wrong thing and Ctrl+C does nothing) I can find my target HWND and persuade it to open the context menu (it responds to WM_RBUTTONDOWN/UP not WM_CONTEXTM...
TTreeNode does not have a Visible property, so the obvious option does not exist. Is there any other way to make a TTreeNode and all its child nodes invisible? Of course I want to be able to make it visible again later. This is with Delphi 2007. Note#1: I am aware of the alternative TVirtualTreeView, and I will check it out if there is...
I am trying to parse a response from a SOAP web service, but part of the data has an invalid xmlns element and I think it is causing me no end of trouble. The part of the XML that I am working with is as follows. <soap:Body xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <ResponseData xmlns="http://www.example.com/WebSer...
Hi! Trying to use GnuPG with Delphi (Win32). I need to sign some file with such console command: "C:\Program Files\GNU\GnuPG\gpg.exe" -a -u Alex --passphrase secretpassword --yes --clearsign -o C:\Result.asc C:\InputFile.txt First I created normal VCL Forms App and used CreateProcess function, everything was OK, but when I transfer...
I have a DBGrid on a form and I have made multiple selections, I now need to send the selected cells (they are email addresses) to the "TO Box" of Outlook how can I do this, I will appreciate any help ( Delphi5) Thanks in advance ...