delphi

How in Delphi 2009 redirect console (stin, sterr)?

I try several samples in the internet and none of them work - the scripts are not executed- (maybe because are for pre Delphi 2009 unicode?). I need to run some python scripts and pass arguments to them, like: python "..\Plugins\RunPlugin.py" -a login -u Test -p test And capture the output to a string & the errors to other. This is ...

can you recommend a really super native delphi graphing engine?

we've been using Pro Essentials graph (gigasoft.com) but it doesn't play nicely with delphi so it's been causing problems. we need to display waveforms and bar graphs (not at the same time). the waveforms could have thousands of points. we need something pretty full-featured that's a "living" product. our app is a native win32 delphi...

Does Delphi sometimes revert text form files (DFM) to binary format?

Our Delphi 7 development team stores form files (dfm) in text mode, and uses a source control system (Subversion) to track changes. Sometimes, we noticed that a form file returned to binary format between revisions, causing diff tools like TortoiseMerge to complain. Using the Subversion change log, I can see that the DFM file was store...

Which Amazon web services can be used with Delphi 'out of the box'?

The feature matrix for Delphi says: 'Added in 2007! SOAP features updated to support Amazon, eBay, MapPoint, and more'. I was able to build a working client, without special workarounds for the Amazon Simple Queue Service. With Amazon SimpleDB, I ran out of luck (but not because of Delphi, see here). Which Amazon web services have you ...

Determine Parent Component

Hi We have TToolbarButton(s) on a toolbar, each with it's own associated TPopupMenu. The popup menus are all the same so we would like to have only one menus for all the toolbar buttons. The problem I have is determining which ToolbarButton invoked the popup menu. I've tried the following, but I keep getting an access violation. ... ...

Is the Amazon SimpleDB WSDL for SOAP without WS-Security correct?

The SimpleDB documentation includes this example request for a ListDomains method. Note that there are Signature, Timestamp, AWSAccessKeyId and Version subelements: <SOAP-ENV:Body> <ListDomainsRequest xmlns=" http://sdb.amazonaws.com/doc/2007-11-07"&gt; <Signature>SZf1CHmQnrZbsrC13hCZS061ywsEXAMPLE&lt;</Signature> <Tim...

When should I use enhanced record types in Delphi instead of classes?

Delphi 2006 introduced new capabilities for records, making them more 'object-oriented'. In which situations is the record type more appropriate for a design than a class type? Which advantage does it have to use these record types? ...

Killing the Ghost of the BDE

In my Delphi7 app, I can connect to the database when logged in as Administrator ("Dave"), but not when logged in as a standard or limited user ("Paris"). Happens on XP Home & Vista Business Ultimate 64. I use an alias for the db. Database is Firebird, middle-ware is IBO 4.7. I posted this in another thread, but know I have a lot more i...

How to build stand-alone SOAP web services using Delphi?

How can I build a stand-alone SOAP-based Web Services using Delphi? Must work with Delphi 2009, but it'd be nice if it worked with older ones too. The built-in WebBroker Web Services creates CGI or ISAPI. It would be nice to create a stand-alone executable that I can control from bottom to top, especially during development. ...

Is it safe to call TWinControl.Update from TGraphicControl.Paint?

I have a TGraphicControl descendant which paints rather slowly. There's also a TWinControl descendant, this one paint fast. Both controls are on the same TPanel. While scrolling, the TGraphicControl is updated more often than the TWinControl, so they look out of sync. This updating is done by Windows and/or the VCL, not by my code. I c...

Delphi Array Alignment set to 4, 8, or 16 byte boundaries?

I would like to use the FFTW C library from Delphi 2009 and according to this documentation; http://www.fftw.org/install/fftw_usage_from_delphi.txt to increase the performance inside the FFTW library (such that it can use SIMD extensions) arrays passed in of either Single (float) or Double (double) need to be aligned either at 4 or 8 b...

keybd_event() not working in ACTIVEX module with IE PROTECTED MODE

keybd_event() is not working in ACTIVEX module with PROTECTED MODE - I am using activex that simulates keypress but it simply does nothing with new IE8. keybd_event(VK_SPACE, MapVirtualKey(VK_SPACE, 0), 0, 0); keybd_event(VK_SPACE, MapVirtualKey(VK_SPACE, 0), KEYEVENTF_KEYUP, 0); is there a trick to get around this issue? ...

Delphi QuantumGrid GetSelectedRowIndex after sorting

I have D2006 and I am using DevExpress QuantumGrid 6 in a project. I am using it in unbound mode. I have several rows and I need to trigger an action when user select a row and click a button. That works fine when the grid is not sorted by user. I use this code to know the row the user has selected: index := cxMainTable.DataController.G...

Delphi Component Not Painted

Hi all, I have component (descendat of TPanel) where I implemented Transparency and BrushStyle (using TImage) properties. All it's ok when I have one component of this type on the form. Bun when I pun on the form more components of this type only first visible component is painted. When form is moved and first component is under other ...

How can I set attributes for SOAP elements in Delphi?

In a SOAP client request, the header needs this line: <NS2:Header Name="Foo">Bar<NS2:Header> So I wrote a class which has two string properties: the Content property - for the value of the element ("Bar") the Name property - for the value of the attribute ("Foo") The AS_ATTRIBUTE flag of the Name property should indicate that it ...

How long does a TDataset bookmark remain valid?

I have code like below in a project I'm working. procedure TForm.EditBtnClick(Sender:TObject); begin // Mark is form variable. It's private Mark = cdsMain.GetBookmark; // blabalbal . . . end; procedure TForm.OkBtnClick(Sender:TObject); var mistakes: Integer; begin //Validation stuff and transaction control //remo...

Delphi components to use with SQlite

What components can I use to use SQlite database with delphi 6 Thanks ...

Secondary Shortcut does not fire

I am using Delpho 2006. The Scenario: On the data module I have an ActionList. One of the actions has a shortcut Ctrl+F4 and I want to have a secondary shortcut Ctrl+W. I tried all of the following: Adding Ctrl+W to the actions SecondaryShortcut list in the IDE. Adding it in the DataModuleCreate procedure using either ActFileCloseFil...

having Jquery UI framework in TWebBrowser in Delphi

Hi: I am working on an application, lots of the UI elements will be in a TWebBrowser. So I thought I add a JQUERY UI to make it easy for me. I was able to insert JQuery and UI javascript file thanks to http://www.jasontpenny.com/blog/2008/11/21/jquery-in-a-twebbrowser-in-a-self-contained-delphi-app/ I am stuck at stylesheets, I did ...

Porting Windows demo apps to WinCE/XP Embedded

We have a range of PC demonstration programs for our microcontroller products. The programs typically connect to a USB HID chip on the microcontroller board. The USB chip acts as a communications bridge, allowing the programs to communicate with the micros over SPI/I2C/UART. The programs can configure the micros, and get back status ...