delphi-2010

Can I write Windows drivers with Delphi 2010?

I've always heard that Delphi can do almost anything C++ can do...except write Windows drivers. Is this correct, and if so, why is that? I recently read a blog post online that may indicate a possible solution for writing drivers with Delphi, but it's 3 years old and I don't know how accurate this information is. So, with the latest v...

Recommendations or comparisons on Indy's TidHTTPServer versus Delphi's TDSHTTPService

I need to implement a small, standalone web server that will be used to process REST API calls, using Delphi 2010. There seem to be two easy choices available with Delphi 2010 out of the box: Indy's TidHTTPServer and Delphi's own TDSHTTPService. I am familiar with Indy components and would probably use them without question; there is a...

sending files with TClientDataSets

Hi all How do i send files using TClientDataSet? i am using Delphi2010 thanks vladimir. My appologies for the confusion, my intention is to send/tranfer pdf files from one TCLientDataSet to Onother... we are using MIDAS... thanks ...

Do time zone specification in XMLMapper works ?

Hi all, I receive DateTime in XML file like this 2009-12-14 05:07:38Z. So, I thought it was a mistake but after little googling, I find this : http://www.w3schools.com/Schema/schema_dtypes_date.asp Time Zones To specify a time zone, you can either enter a time in UTC time by adding a "Z" behind the time - like this: 09:...

How can I pass a Delphi string to a Prism DLL?

We try to pass a string from a native Delphi program to a Delphi Prism DLL. We have no problem passing integers, but strings are mismatched in the DLL. We saw Robert Love's code snippet in response to another question, but there is no code for the native Delphi program. How can we pass strings from Delphi to a Delphi Prism DLL? ...

Interfaces, Anonymous Methods and Memory Leaks

Hi, this is a constructed example. I don't want to post the original code here. I tried to extract the relevant parts though. I have an interface that manages a list of listeners. TListenerProc = reference to procedure (SomeInt : ISomeInterface); ISomeInterface = interface procedure AddListener (Proc : TListenerProc); end; No...

How to automatically copy resources to the DCU output folder.

I would like to know, is there a way to automatically make the IDE/Compiler/other copy all the resource that needs to be linked with the DCU to the DCU output folder. I often use forms that I pre-compile to avoid the needs to recompile the unit all the time in my main projects. The DCU gets updated, but we need to copy the DFM manually ...

Is it possible to implement gestures/touch on a WMP surface?

I have a Delphi 2010 app that imports Windows Media Player via a type library (and thus TOleControl). I assign a TPanel as the parent for the control and this all works fine. However assigning a TGestureManager etc. to the parent panel does obviously not work but I was wondering if there is some other way to get some "basic" gestures to...

TCollection PropertyEditor with editable Columns

Hello, for my own TCollection descendant I want to extend the collection property editor. I want to see more columns for other properties of my TCollectionItem. And I am a lucky because it is pretty easy. The only thing I want to do was to override these three methods TAttributeList = class(TOwnedCollection) private ... protected f...

How to turn off source formatter in Delphi 2010 for sections of code?

something like Jedi Code format: //jcf:format=off . . . //jcf:format=on ...

Problems with Rave Reports 7.7BE scripts

Hi Guys, I have an application that uses Rave Reports. After upgrading from Delphi 2006 to Delphi 2010 some scripts stopped working and gives an Access violation message I have a script that looks like this: OnGetText: IF (ddvDetailTaxidEventType.AsInteger = 1) THEN Value := 'TEST ' + ddvDetailTaxidEventType.AsString ; ELSE...

Delphi Application.HintColor

In Delphi 2010 (don't know about other versions) Application.HintColor seems to have no effect when running on Windows 7. On XP it gives the desired color. Any workarounds for this? ...

Building Multi threaded TCP/IP Server

I wanna build a TCP/IP server that will be used by up to 100 concurrent clients, but still not sure how to get started. at least I need the server to this: Listening to client, and store all them on array or list. for each client, it need to receive and send data based on it's client status. The server should update the clients list w...

How do I make a TCheckListBox scroll vertically?

I've got a TCheckListBox on a form. Its Columns property is set to 2, and if there are more items than can fit on-screen in two columns, it puts a horizontal scrollbar across the bottom of the control. Thing is, the way this form it laid out, it would be much more convenient to scroll vertically. But I can't seem to figure out how to ...

How to Specify Project-Specific Package Settings?

How can I specify project-specific package settings in the Delphi 2010 IDE? Changing the packages in the project options does change the packages for all projects in the project group. This is annoying because I build my application with a package that needs to be disabled in order to compile the BPLs in the project group. ...

Best tools [practices] for printing annotated image (TPicture) based documents from Delphi

It seems that most Delphi applications fit into two classes: Database-centric Applications that use Reporting Systems for all their printing needs, and applications that don't need printing. For those in the excluded middle (non-database printing, non-reporting system), there are components to help out. For example, I have been a Develo...

UseLatestCommonDialogs in Delphi 2010 leaks resources?

I have an application in where I let the user select a file from a TOpenDialog. When I have UseLatestCommonDialogs set to true (default), my application will crash after the user has click the button 10-15 times. The problem is isolated to this unique function, it the user avoids this step the application will not crash. When it crashe...

Anonymous methods cast as pointers

Hi all, can anyone explain why the code below fails? type TIDEThemeObserverFunc = reference to procedure(foo: integer); var fObserverFuncs: TList<TIDEThemeObserverFunc> function RegisterEventObserver(aObserverFunc: TIDEThemeObserverFunc): Pointer; begin fObserverFuncs.Add(aObserverFunc); Result := @aObserverFunc; // line below ...

Delphi 2010 accessing to frames inside a TIFF

Hello, I just tested I can access to TIFF images in Delphi 2010 with the classic image1.Picture.LoadFromFile(MyTiffFile); Simply using this line of code I can load the first frame of a TIFF file into a TImage component. But when a TIFF file is a multiframe one. How can I get the rest of images contained in a TIFF file? ...

Converting a stand-alone Delphi-made .tlb file to .ridl

How does one convert a stand-alone .tlb file created in a pre-2009 version of Delphi to a .ridl file using Delphi 2010? .tlb files that are part of projects get automatically converted, but this particular file is not part of any project. ...