delphi

unsatisfied forward or external declaration

getting an error while compiling .pas file "unsatisfied forward or external declaration :TxxxException.CheckSchemeFinMethodDAException." any idea what this error could imply? Does it mean that "CheckSchemeFinMethodDAException" was not called in all the concerned files? ...

Inplace conversion of 24bpp bitmap to 32bpp

In Delphi 7, I have to deal with pretty large 24bpp bitmaps (several 100 MB). Since I want to use the Graphcis32 library for further processing, they have to be converted to 32bpp (TBitmap32). The LoadFromFile method of TBitmap32, however, creates a temporary conventional TBitmap to load the original 24bpp bitmap which is then assigned t...

How to get current method's name in Delphi 7?

Is there any way to know the name of a method I'm currently in? So that: procedure TMyObject.SomeMethod(); begin Writeln('my name is: ' + <hocus pocus>); end; would produce this output: my name is: SomeMethod ...

problem in and lparam in sendmessage(delphi)

hi i want to move the mouse using *WM_MOUSEMOVE* message.but i do not know how to set lparam value? please guide to accomplish this. ...

Win32/Induc.A, "Delphi"-virus, infects SysConst.pas, does anyone have a sample of code to search for?

I just noticed that a recent upgrade of Take Command is reported as being infected with this virus, and an update to NOD in the last few hours added the ability to detect that virus, which is why I became aware of it. In this case, judging by the contents of the article linked to in the answer I accepted, it looks like it is a false posi...

Delphi and Fitnesse/fit4delphi examples?

Is there any opensource or example projects showing the use of fitnesse with delphi? It's sad how hard it is to find resources and information for delphi... :-/ UPDATE: Ok. I realize that my question was a little short. Searching SO and google was kind of obvious for me, so I didn't mention that I already did. So to clarify a little: ...

Is there a way to change the default generated code wrapping width in the Delphi IDE Editor?

Now that I have a widescreen monitor, I can't seem to find a way to make the Delphi IDE wrap generated code at anything other than 80 chars. I've set the "Right margin" setting in the IDE Editor options to a high value, but it doesn't appear to affect the wrapping that happens on generated events and code lines. Does anyone know of a w...

Any light for TEventLogger?

I want to see about logging events from a Delphi 5 application to the Windows log, and from another post here I see that I can use the TEventLogger class to do this. However, I can't find any documentation on the syntax of the TEventLogger.LogMessage procedure, so I don't know what all the parameters mean, how to use them, or even what ...

ADO or DBX using Delphi

Which is better (and for what reasons) to use to connect to MS SQL, Oracle or Firebird from a Delphi Win32 application -- ADO or DBX (Database Express)? Both allow you to connect to the major databases. I like the way ADO does it all with a connection string change and the fact that ADO and the drivers are included with Windows so noth...

Can I get TComboBoxEx to be the same Height as TComboBox?

In Delphi, all the TEdit and TComboBox controls are 21 pixels high by default. In the case of TComboBox, this size is absolute and trying to stretch it to something bigger doesn't work. In the case of TComboBoxEx though, the default height is 22 pixels, which makes it stand out a little on any form where you use it. Now according to the ...

Delphi: “Parameter object is improperly defined. Inconsistent or incomplete information was provided.”

This is a Function that does the following: Create a random Token with 8 length Insert that Token into the Database > If the User has already a token, update it. > If the User has no token, insert it. procedure createToken(BenuNr: integer); var AQ_Query: TADOQuery; strToken: string; intZaehler: int...

Delphi: .exe with built-in packages: 600kb, .exe + external BPLs: 6MB. Why is that?

Hi, if I compile .exe file in delphi with built-in packages, it generates about 600kb EXE file. However if I compile it with runtime packages, the sum of sizes (.exe + all required .BPLs) is about 6-8 MB (depending on version of compiler). Why is the difference so significant? ...

TComboBoxEx Items wont indent when populated at runtime

Edit: Update at bottom. Hope someone can help here as it's driving me round the bend! Delphi 2009 I have a form with two TComboxBoxEx components on it One I populate at runtime with the following code procedure TForm1.btn1Click(Sender: TObject); var N: Integer; begin cb1.ItemsEx.Add.Caption := 'Test'; for N := 0 to 5 do w...

I have a problem in dll?

hello all friends.......... I create a form inside the Dll. But it compile is not successfully.Some Error below. " Access violation at address 004EB784 in module 'Project1dll.dll'.Read of address 00000048" Thanks..... ...

Serial port and handling errors during overlapped I/O operations

I've been doing serial communications lately so I prepared a class being a simple interface to all those Windows API functions responsible for reading, writing, etc. All I/O operations inside this class are handled asynchronously. Before I go to my question, let me show you how I write and read data from serial port (this is only the re...

How can I write a WebDAV server with Delphi?

There are some WebDAV clients available for Delphi (for example included in Indy 10). Is there also a simple WebDAV server solution written with Delphi? If there is none yet, maybe you know an implementation in a different language (C#, Java) which you can recommend as a starting point for a WebDAV server implementation? (It does not ha...

[Wizard] How to check previous tabsheet when moving from page to page in a pagecontrol?

Hello I'm using a TPageControl with the TTabsheets' tabs hidden so as to have the frames they contain appear to be stacked, and build some kind of wizard by displaying a different frame at different steps in the process. Problem is, after calling "PageControl1.ActivePageIndex := x;" to display the next frame, once in the new frame I ne...

External exception C0000006

Hello, I've wrote some program in Delphi and when I am running it from a disk on key. At some point I'm required to unplug the disk on key while the application is running. If I do this on a computer with at least 1gb of ram everything is okay. When I do this on a machine with 512mb I get an external exception C0000006. If I'm not mista...

Is it possible to add additional GUIDs to a typelib?

I have a typelib that describes some interfaces. As some of these interfaces are used as a category, I want to add the category IDs to the typelib. So the question is: a) how can this be done in Delphi (2007 and up)? or as an alternative b) is it possible and advisable to use the interface GUID for the CATID? ...

Problem with updating blob, if blob contains specific data

I have binary data that needs to be stored in a BLOB field in a SQL-database. In case of an UPDATE (storing into the database), the binary data comes as a string (BDS2006, no unicode). When the BLOB field is READ, the binary data needs to be returned as a string. Therefore, I have used these two pieces of code (qry is a TQuery): READ: ...