I have a dll RL6_dll.dll from a routing program RouteLogix that is used to plan trucks etc.
Now we want to use that from Delphi 2007.
We have a c++ header for the dll and a working example that use it in C++-Builder.
Here is an example from that file:
// Use this routine to find the directory where the data-xxx subdirectories
// are e...
I use Indy's TIdTCPServer (D2009, Indy 10) to communicate with client applications. In the OnExecute method I create a task and queue it. A worker thread executes the task and puts it in the send queue. The send queue then sends the response to the client.
In the send thread I loop through the server's context list and look for the cont...
I'm slowly converting my existing code into Delphi 2010 and read several of the articles on Embarcaedro web site as well as Marco Cantú whitepaper.
There are still some things I haven't understood, so here are two functions to exemplify my question:
function RemoveSpace(InStr: string): string;
var
Ans : string;
I : Word;
...
From experience, what is the best general purpose tree list for Delphi: Virtual Treeview or Devexpress ExpressQuantumTreeList ? I'm currently using the Virtual Treeview, which is fine for my needs but I'm starting a new project and would like to make sure I opt for the best long-term updated and bug-free component.
Any thought or switch...
I'm new to delphi and now I have to read create an xml. my code is the following:
function foo.createXMLDocument(): TXMLDocument;
var
res: TXMLDocument;
rootNode: IXMLNode;
sl : TStringList;
begin
res := TXMLDocument.Create(nil);
res.Active := true;
rootNode := res.AddChild('label');
// create string for debug purposes
s...
Hello
when I open concrete projects the error insight mark with red lines incorrect areas of the screen. Also when I compile It, error messages are shown, but the line number displayed in the message window points to a wrong line in the code window. When I double click over a error message the ide goes to another line. how do i correct ...
I am familiar with Jeff Atwood's article about how errors are always the programmer's fault, but I believe I have really and truly found a bug in a Delphi .pas file.
Specifically, I'm using Delphi 2007, and the error is on line 955 of the DBCommon.pas file, which on my machine is located here:
C:\program files\codegear\rad studio\5....
Hi,
Have installed trial version of Delphi 2010, and hoped to get a look at DeHL.
There must be something that I have missed out on, though, cause I can't find out how to include any of the units without getting a 'file not found'-error at compile time...
What I have done, is to include the path to the pas-files in the projects 'Incl...
Hi !
I'm trying to make an image retriever to work with a list.
The list contains items of type (TItem) for example. TItem has some properties like title, image and imageURL.
There is a thread with the list that scan all items and try to retrieve the image of each item by using the imageURL of each item.
The thread that retrieve the ...
I need a sample or tutorial on working with XML files. I want to create a file that contains a "record" to a person, something like this:
Name: Just Me
Age: 99
EMail: [email protected]
I want to learn how to read and write an XML file.
...
In a Delphi application we are working on we have a big structure of related objects. Some of the properties of these objects have values which are calculated at runtime and I am looking for a way to cache the results for the more intensive calculations. An approach which I use is saving the value in a private member the first time it is...
I got a app developed in Delphi 6 with master/detail constrution. Both master and detail take TQuery to open the data source. It works fine when the master opens first, but after that an error message of "Table is not indexed" occured when the detail opens the data source.
The working account for app. is the SCHEMA_USER, which has a aft...
Whilst I'd love to solve this problem in python, I'm stuck in Delphi for this one. I have nested lists (actually objects with nested lists as properties, but nevermind), and I want to iterate over them in a generator fashion. That is, I want to write a Next function, which gives me the next item from the leaves of the tree described by t...
If I've got some Native Windows App (i.e. Delphi) and I'm having a lot of end users running it on things like the Nokia N800 connected to a windows terminal server using RDesktop.
Some of the things on the screen are very hard to see, but I don't want to have some weird magnification of the whole screen because the resolution on those...
Hello all friends.
I want to use Delphi to create a program that controls the fan speed of my computer and monitors the temperature.
What API calls are involved in doing that?
Are there any good code samples that you can share?
...
I'd like to spruce up some of the user controls I use and thought some attractive fills should do the job (part of it perhaps). Like the fill in the background of iPhone buttons or the Office 2007 ribbon bar (perhaps you know a few more).
Edit:
To clear things up, I don't need a simple gradient fill - there is a Windows API call for tha...
We have a medium-to-large size application. One version runs on Delphi 6 and another one on Delphi 2006.
One argument would be support for Unicode. We need that to cater to Customers around the world.
Other things I have read about are: better IDE (stability, speed), better Help and some cool additions to the language (e.g.: generics...
I define a server method:
TServerMethod = class(TPersistent)
public
function EchoString(Value: string): string;
end;
The method EchoString return an equivalent Value string.
I then use TDSTCPServerTransport with TDSServer and TDSServerClass to wrap the server methods.
In client side, I create a DataSnap TSQLConnection and generate...
How can I connect with the TWebBrowser-component in Delphi from outside an ADS-Domain to a Sharepoint-Server. I've created an user-account in my domain and will connect with this information to the server.
the following don't work:
const
USERNAME = '[email protected]';
PASSWORD = 'Password2009';
var
Url, Headers: OleVariant;...
If you've purchased the Software Assurance, can you please share your experience? Was it worthwhile?
I vaguely remember reading some negative comments about SA maybe 1 or 2 years ago.
...