delphi-2009

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...

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 ...

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 do I get Delphi 2009s (Refactor) Extract Interface to work?

I am trying to use Delphi 2009's refactoring to extract an interface from a class. The class looks something like this: Type TMyClass = class(TObject) private FPrivateVar: Integer; public procedure MyPublicProc(Value: String); function MyPublicFunc(Value: String): String; end; If I place the cursor in the public s...

Which variables are initialized when in Delphi?

So I always heard that class fields (heap based) were initialized, but stack based variables were not. I also heard that record members (also being stack based) were also not initialized. The compiler warns that local variables are not initialized ([DCC Warning] W1036 Variable 'x' might not have been initialized), but does not warn for...

Why does ReadDirectoryChangesW omit events?

Hi! I use ReadDirectoryChangesW to watch a specified directory and update indexing structures whenever a change is detected. I use the following code (roughly) var InfoPointer : PFileNotifyInformation; NextOffset : DWORD; ... while (not Terminated) do begin if ReadDirectoryChangesW (FDirHandle, FBuffer, FBufferLength, True, ...

Can tdiQuestion be added to TaskDialog.MainIcon?

Can tdiQuestion be added to TaskDialog.MainIcon? Unavailability of the "?" icon in the TaskDialog renders it almost useless. Is there any fix? ...

Registering a custom Frame

Hi, In Delphi 2009, In one of my projects, I have a custom frame with some controls on it which I want to use as the base class for some other controls. I want to register this frame as an IDE wizard to be available in New Items list. When I add my newly added item (my custom frame) to a project, I expect it to: Show all the propertie...

My app hangs while being debugged

I am using Delphi 2009 on Vista Ultimate 64 bit. I run my application from within the Delphi IDE, and after some time (a minute or 2) my application will hang. Looking at the event log, the hang is associated with a thread exiting. It is not the main thread, but a thread that has been started just after the module RSAENH.DLL has been l...

How to setup the JIT debugger in Delphi 2009?

Hello, On my machine I have Visual Studio 2008,C# Express,Delphi 7 and Delphi 2009 Architect(No updates). When I usually run Delphi 7,it notifies that the JIT debugger is currently set to another application(Visual studio in my case) and asks me if i'd like to change it to Delphi. If I press Yes,I can use the debugger in Delphi 7,othe...

A unit calling wsock32.dll to be adapted for D2009

Here a unit i can't get working properly on Delphi 2009. I give you the original code that correctly transmit data when compiled with Delphi 2007. Ansifying the code for Delphi 2009 gives me a connection to the server but no data is transmitted and no feedback). Thanks. unit SMTP_Connections2007; // ************************************...

String representation of the content type of a Variant ?

Hi, first apologies for my english, I hope it make sense what I`ve wrote here. Now to my problem. How can I get the string representation of the content type of a Variant using TypInfo.GetEnumName(). I have tried the following, without luck, i get a numeric representation. myString := GetEnumName( TypeInfo(TVarType), TVarData(myVar).V...

Delphi 2009, MyDAC and relational database

Hello everyone! I have quite a problem concerning the use of relational database concepts in Delphi 2009 with MyDAC. I have a database structure that looks somehow like the following: Item id name Storage id name StorageItem id item_id storage_id place Now when I have an active dataset from "Item" how can I disp...

What is the best way to do application data exchange in Delphi without sockets?

I need a few of my related applications to communicate to each other (exchange data and initiate actions). Requirements are without packages and no sockets. So I guess that leaves named pipes, WM_CopyData (like Skype does it) and command parameters. What are your best practices? ...

Interfaces with Generics - Setting to NIL

I am trying to implement clear in the following example code in Delphi 2009. interface ... TFoo<T : IInterface> = class(TObject) FField : T; procedure Clear; end; ... implementation ... procedure TFoo<T>.Clear; begin // Line Below Results In // E2010 Incompatible types: 'T' and 'Pointer' FField := nil; end; ... I c...

How to copy a RTF string to the clipboard in delphi 2009?

Here is my code that was working in Delphi pre 2009? It just either ends up throwing up a heap error on SetAsHandle. If I change it to use AnsiString as per original, i.e. procedure RTFtoClipboard(txt: string; rtf: AnsiString); and Data := GlobalAlloc(GHND or GMEM_SHARE, Length(rtf)*SizeOf(AnsiChar) + 1); then there is no error but...

Is sqrt still slow in Delphi 2009?

Is sqrt still slow in Delphi 2009? Are the old tricks (lookup table, approx functions) still useful? ...

DeCAL and Delphi 2009

Have someone tried out DeCAL in Delphi 2009? I'm thinking about upgrading from 2007, but my code is quite dependent on DeCAL... ...

How can I cast an object to a generic?

I'm trying to cast a returned base object to it's specific generic type. The code below should work I think but generates an internal compiler error, is there another way to do this? type TPersistGeneric<T> = class private type TPointer = ^T; public class function Init : T; end; class function TPersistGeneric<T>.In...

Orpheus for Delphi 2009

Hello. I am a user of Orpheus. There is nothing better for table handlin,f.ex. I have downloaded your version for D2009. How do you get it work for You with all the CHARs in there, and without using H- for the strings ? ...