delphi

Simple anti-aliasing function for Delphi 7

Hi. I need a very simple function to draw a bunch of lines with anti-aliasing. It has to follow Delphi paradigm: self contained and SYSTEM INDEPENDENT (no DLL hell), fast, simple. Anybody knows such a library? Until now I have tried: WuLine swissdelphicenter.ch/torry/showcode.php?id=1812 I don't think that Peter Bone, the author of th...

How do I get IDropTarget to work with my Drop Handler in Delphi?

I have associated a file extension with my Delphi 2009 program. I have been using the command line call method to pass the filename to my Delphi program so it can be opened. However, I found that when selecting multiple files, and clicking on them all at once, it opens each file in a separate instance of my program. I asked about this...

Why doesn't {$ifopt FINITEFLOAT ON} compile?

I have the construct: {$ifopt FINITEFLOAT ON} {$message 'FINITEFLOAT option ON' } {$else } {$message 'FINITEFLOAT option OFF' } {$endif } in my source and it won't compile! It's got to be something stupid. The error is: E1030 Invalid compiler directive: '$IFOPT' at the first line, but it is the FINITEFLOAT it's complaining abo...

Datasnap vs SoapServer

What are the advantages in using DataSnap compared to writing a soapserver application. I know Datasnap can use TCP/IP instead of soap. Regards Sandeep ...

Delphi SoapServer application

Is it possible to convert Delphi SoapServer application to use TCP/IP? Regards Sandeep ...

ADO OleDB Visual Foxpro

Hi. Specific question: Does VARCHARMAPPING=True work on Ado OleDB connections for Visual FoxPro? and if so how should the connectionstring look like? We're developing a Delphi application that uses parts of an old visual foxpro database as a base. This morning I had a working connection to the database that for all intents and purposes...

how to get motherboard serial in Delphi ?

Possible Duplicate: how to get motherboard id or serial number ?[Delphi] Hi , is there any free component ? ...

Stop OK button from closing dialog in delphi

I have a dialog with some fields in it. The user is suppose to fix the form which will later on be parsed. When the user presses ok, the data goes to the database if the checks are successful, if not a warning should be shown and the data dialog should stay. Something like shown below: procedure TDataSaver.OKBtnClick(Sender: TObject); b...

Delphi Quick Reports - Total Pages

I'm using QuickReports within my application and would like to have "Page x of x" within the footer. What's the best way to do this? ...

Getting Jpeg error #51 when loading from BLOB with Delphi 2010, fine w Delphi 2006

I have an old application developed in Delphi 2006 that I now needed to make some changes in. In this app, I'm loading images from a MsSQL "image" field but when i compile with delphi 2010 I get the error : "raised exception class EJPEG with message 'JPEG error #51'." The code that get's the image from the database: aStream := TMemory...

Evaluating the current Hour in Delphi

I'm looking for the Delphi eqivalent to the following Ruby Code if Time.now.hour > 12 then # Statement; else # Alternative Statement; end Thanks Stefan ...

Calling DLL from Assembly? Dis. Ollydbg

Hi there, I'm using Ollydbg to disasemble a program. What I need to do is inject code into the program and save an EDX value at a certain point. I'm guessing the easiest way would be for me to create a dll with a single function like so... function WriteEAXValue(EAX: PChar): LongBool and then inject code into the program so it calls t...

How to use variant arrays in Delphi

Hello all! I have two Delphi7 programs: a COM automation server (EXE) and the other program which is using the automation server. I need to pass an array of bytes from one program to the other. After some searching I've found that using variant arrays is the way to go (correct me please if you know any better methods). My question is...

Delphi DBGrid Format Display Values

Hi I need to format values in a DBGrid to display in a certain format ex '#,##0.00'. Any idea how to do that? Regards, Pieter ...

C++: Binding class functions in DLLs

I'm relatively new to DLL importing and function binding. Let's say I have a C++ project which is a GUI library written fully in OOP aiming to be used in games. My game project however is written in Delphi. I now want to bind Delphi functions to the ones in the DLL. I would know how to do this with simple functions, without classes lik...

Indy HTTP Client: sessions like in web browser

I'm making a program for registration on a website. For this, I use C++Builder and Indy (TIdHTTP). How it works: Program receives registration page via GET and extracts CAPTCHA picture address from it; downloads the CAPTCHA (GET) and serves it to user; sends the data provided by user to the website in POST request. Problem: The CAPT...

How to associate Imagelist property with ImageIndex property in Objectinspector at design time?

Hi, surely you know the easy manipulation in object inspector at design time with ImageList and ImageIndex properties. After assigning Imagelist you can click on ImageIndex property, and nice list of images togeather with their indexes appears. I am trying to make my own control, which has imagelist and imageindex properties. But I won...

Looking for a Delphi library/component to read .Net app.config files

Subject line says it all really. Some Googling has revealed a puzzling lack of relevant information. Some pointers to an existing implement would be great! Raymond. ...

TWebBrowser - Hook receive event

Hello, I am trying to automatically submit a form, and save the resulting image that gets shown in the TWebBrowser object. The image gets loaded over several chained javascript requests (ajax), until it finally appears in the document. What is the best way to get this image? I thought of hooking the receive function to be able to see t...

Having a problem with XML-RPC and Delphi

unit Unit2; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, IdBaseComponent, IdComponent, IdTCPConnection, IdTCPClient, IdHTTP, IdIOHandler, IdIOHandlerSocket, IdIOHandlerStack, IdIntercept, IdCookieManager, IdZLibCompressorBase, IdCompressorZLib, IdSSL, IdSSLOpenSS...