delphi

Can a parameter safely be removed from a Delphi TADOCommand at runtime.

My Delphi 2006 TADOCommand has it's CommandText (including parameters), Prepared (True), ParamCheck (True) properties all set at design time. Is there a way for me to go about deleting some of it's Parameters at run time, without having to change the CommandText to accomodate these changes. This is desireable in the...

Pass static byte array in parameter in Delphi

I have a static array: myArray: array [0..15] of byte; I wish to pass this array (not a copy of the array) into a function. Inside the function, I will manipulate the data in array. Different lengths of STATIC byte array may be passed in to Init at different times. Therefore, I do not wish to declare Init to be able to receive only a...

Delphi XE - calling Crystal Reports

How do we call Crystal Reports from Delphi XE? What version of Crystal Reports does Delphi XE support? ...

Delphi Prism - DataModule - Data binding

What is the equivalent for Datamodule in Delphi Prism XE? How data binding is supported in Winform applications using Delphi Prism XE? ...

Convert Doc,Docx to TIFF with delphi

Hi How can i convert doc,docx to TIFF whith delphi? ...

How to make Word invisible during OLE automation from Delphi

From our application we use OLE automation to build a fairly complex Word-document. I would like to make Word invisible while the document is being made, since there is a lot of pasting and insertions that takes quite a long time. I use the following code to establish a Word connection: function ConnectToWord : TWordAutomationResult; ...

Delphi SOAP timeout?

Hi, I occasionally get SOAP time outs and I am sure it is the connect time out that is causing the problem. After 30 seconds, I always get a time out. By googling, I found suggestions to InternetSetOption that can be used to set the time outs, however on my machine, I have SOAPHttpTrans.pas (CodeGear Delphi 7) which has the following c...

Why does my IMessageFilter not always work?

I'm working on Word automation and to get rid of "Call was rejected by callee" / "the message filter indicated that the application is busy" errors I implemented an IMessageFilter. The messagefilter works like a charm when I automate Word directly like: Word.Documents.Open(...) Document.SaveAs(...) But when I call TOleContainer.DoVer...

Which Delphi data structure can hold a list of unique integers?

When I approach Java problems, I use the collection pattern. However, doing it in Delphi is quite a nightmare since there is no Integer object to handle things. I need a data structure that holds numbers. I want to be able to add numbers, remove numbers, and check the contents of the collection, and each number must be unique. I'm not...

Why the blue dots (indicating that the code was compiled) do not appear?

I put several 3rd party controls in a DPK file in order to install them all with a single click when I (re)install Delphi. One of the controls in this DPK is Melander's GIFImage.pas. The thing is that the blue dots do not appear in this file when I compile the package. Why? The file IS compiled. I have deleted the DCU and I put some ga...

What is the easiest solution for transparent remoting with Delphi?

I have a two tier Delphi for Win32 application with a lot of business logic implemented in a god object I want to outsource into a separate service. This separate service should be accessed by multiple clients via TCP/IP telnet-style protocol. How do I go about making the transition most simple? Precisely, I'd like to keep this simplic...

How to read from a DBF file on a 64bit OS using Delphi?

Using Delphi, now that the Microsoft Jet Driver is no longer supported on 64bit operating systems, what would be the best way to read from a DBF/DBase file? ...

How can I remotely read binary registry data using Delphi 2010?

I am trying to remotely read a binary (REG_BINARY) registry value, but I get nothing but junk back. Any ideas what is wrong with this code? I'm using Delphi 2010: function GetBinaryRegistryData(ARootKey: HKEY; AKey, AValue, sMachine: string; var sResult: string): boolean; var MyReg: TRegistry; RegDataType: TRegDataType; ...

Resize MediaPlayer without play button controls

I wanted to code a resizeable WindowsMediaplayer (ActiveX) without the play controls. it should fit to TPanels. ...

In Delphi 2007, is it safe to use FastMove along with RtlVclOptimize and the full version of FastMM4?

Hello! I use Delphi 2007 and have a pretty intensive program that I've been working on for a few years. Besides honing the logic, I've used RtlVclOptimize and the full version of FastMM4 (so I can set some of the IFDEFs to my liking). My questions are: "Is FastMove usable in Delphi 2007?" (My analysis says it seems to be.) "Is FastM...

Generic defined in unit breaking debug information

This must be a Delphi bug... I have a unit which is the basis of my persistance framework. In that unit I have a base class for all my domain objects, a list class and a generic list class. Just recently I noticed that when I step into the unit when debugging, execution will jump to a point a little further down in the file than it sho...

Why aren't _AddRef and _Release called on my Delphi object?

I'm really confused. // initial class type TTestClass = class( TInterfacedObject) end; {...} // test procedure procedure testMF(); var c1, c2 : TTestClass; begin c1 := TTestClass.Create(); // create, addref c2 := c1; // addref c1 := nil; // refcount - 1 MessageBox( 0, pchar( inttostr( c2.refcount...

Delphi Grid Visible Item

HI all, I am working with Delphi 7. I am facing a problem with Grid. My Grid having 100 rows, I am appending some more after that. For example, I am selected item is on 1oth. The grid shows 20 items on screen at a time. I scrolled the grid to downward. I reached last one. Here grid's Itemindex= 10; Please note the selected item is no...

Delphi error appeared suddenly on one machine: E2056 String literals may have at most 255 elements, how is it possible?

I was able to build one application up to this morning, then I don't know what happened as I try to build I have [DCC Error] myunit.pas(1710): E2056 String literals may have at most 255 element` Why this if this was working? (1710) was not edited in last month. I checked with a colleague project options and environement options one by...

How to make a superfast webserver for "check for updates"?

Which is the best approach for creating a fast response in case a client application asks webserver for "check for updates". Skype for example takes about 1 second to answer. How to achieve the same? ...