delphi

Error importing in Delphi 2010 WSDL generated from ColdFusion

Hello -- I'm a novice with SOAP and WebServices. Trying -for testing purposes- to import in RAD Studio 2010 (Delphi Update 4) any very simple WSDL produced from ColdFusion 9 WebService, I received immediately error message "syndicate.cfc SoapBindind is not a valid component name" Details [50074F4C]{rtl140.bpl } Classes.TComponent.Se...

Why ProxySettings doesn't work in EmbeddedWB ? (Delphi)

This is my code : EmbeddedWB1.ProxySettings.Address:='119.112.222.146'; EmbeddedWB1.ProxySettings.Port:=9415; EmbeddedWB1.ProxySettings.AutoLoadProxy:=true; EmbeddedWB1.RefreshProxy; EmbeddedWB1.Navigate('www.whatismyipaddress.com'); But when i navigated the site , my ip address did NOT change ! whereas , when i set that proxy settin...

Delphi BDE Double type Field changed to a String type

I'm using a BDE TTable which had certain fields which were originally ftDouble. Because the input to be stored is sometimes non-numeric, I now changed the field type to ftString. Input into the field is done with a TEdit. When the code gets to: with tblDM do begin Edit; FieldByName('s01_amt').AsString := Edit1.Text; ...

Free a TThread either automatically or manually

Hello all! I have a main thread and a separate thread in my program. If the separate thread finishes before the main thread, it should free itself automatically. If the main thread finishes first, it should free the separate thread. I know about FreeOnTerminate, and I've read that you have to be careful using it. My question is, is th...

Rave Reports and Intraweb ?

Anyone have an example of using Rave Reports (PDF output) and Intraweb ? (or even WebBroker) in delphi ? I'm assuming you write to a memory stream and then output this to the browser. Any help on Rave Reports/Memory Streams and Intraweb or Webbroker appreciated. ...

Using C/C++ DLL in Delphi 2010

Hi All, I want to use dll from ssdeep (http://ssdeep.sourceforge.net/). The API is: int fuzzy_hash_buf(unsigned char *buf, uint32_t buf_len, char *result); then in Delphi, i write it like this: function fuzzy_hash_buf(buf : Pbyte; buf_len : Cardinal; result : PAnsiChar): integer; stdcall; external 'fuzzy.dll' name 'fuzzy_hash_buf'; ...

What CPU registers are to be restored at the end of an asm procedure in Delphi

When writing a Delphi procedure or function in assembly code, which registers must be saved and restored to the original value at the end of the procedure? When calling another Delphi procedure or function from (inline) assembly code, what can I expect that other function to do with the registers? Which registers will be restored to the...

TRichEdit and URL highlighting problems

I am using the current code to highlight URLs on a TRichEdit: procedure TForm1.WndProc(var Message: TMessage); var p: TENLink; strURL: string; begin if (Message.Msg = WM_NOTIFY) then begin if (PNMHDR(Message.lParam).code = EN_LINK) then begin p := TENLink(Pointer(TWMNotify(Message).NMHdr)^); if (p.Msg = WM_LB...

Is it possible to visually design a custom component at design time?

I am venturing into making my own components in Delphi. Im having difficulty getting started with component development. I want to make a composite control ie a control made up of serveral other controls, eg like an address form or something like that. I am descending from TWinControl. Would that be considered to be the correct choice?...

Exception during program shut down "MouseTrackingTimerList.Count <> 0"

I have a Delphi exe that is built with packages. The exe processes successfully but in the shutdown, I get errors. I rebuilt the exe and then one of the DLLs that is called by the exe with the MadExcept error logging software. It traces the exception "MouseTrackingTimerList.Count <> 0" into the finalization of the devexpress cxcontro...

How do I know if a Form is hovering over a component?

I need to know if a (moving) form is hovering over a component (maybe something like MouseEnter and MouseLeave without the mouse). I have this idea of getting the Left, Top, Height, Width of the component and calculating if the (moving) form's position is within the position of the form. (I'm not exactly sure how I can do this) Any sug...

How to register a component and property editor at run-time?

After much searching, it looks like I have to assign RegisterComponentsProc and RegisterPropertyEditorProc, which I have done. However, I thought that I could call my design time Register function, i.e. <myComponentUnit>.Register();. When I do I get stack overflow, because, well ... procedure myComponentUnit.Regiter; begin Registe...

How to play multiple .wav files simultaneously in delphi

I wish to multiple .wav files simultaneously in delphi. When I open and plat the first things are fine. However the second one causes a error when it tries to open. It would appear that i can only use one media player at a time.... is there any way around this what do i do? ...

Mime / Base 64 encoding

hi ! I need a way to encode a string to Mime/Base64 in Delphi 7 and PHP These two encoders must be compatible :) thanks in advance :) ...

Delphi: validate email without regular expressions

Hello. Since Delphi does not have any regular expressions library built-in, have you seen a good function to validate email addresses at least to some degree in using only Delphi RTL/VCL? I don't want to link additional *.dll to my product integrating regular expression support and I need also Delphi 7 compatibility. Embedding regex l...

"Abnormal program termination" bug in the D2007 IDE : is there any workaround ?

I face a very annoying bug in D2007 IDE : It's the second time I have this problem within one month (on two differents computers, but with the same project), and it is a very annoying bug that causes the IDE to close itself without allowing me to save any changes in the code. I tried but cannot reproduce the bug, it only appears random...

Delphi 2009 - res file is not recreated

Hi, I'Ve just created a small application with a toolbar, some toolbar buttons and an TPngImageList. I have saved the project and compiled it. Now I've deleted the .res file in the project folder. When I now open the project in the IDE, delphi says "Res file could not be found. New created". But after that, I can't find the new created...

Delphi live template to surround selection with parentheses

I'm trying to make a Delphi live template (in D2010) to surround a selection with (). My current attempt looks like: <code language="Delphi" delimiter="|"><![CDATA[(|selected|)]]> and it almost works but puts in extra whitespace. If I have a code line like: if blah = 5 then and I selected just the blah = 5 part and invoked my tem...

Show the progress of an SQL Query in Delphi

Is it possible to show the progress of an SQL query in Delphi? For example I have a long complicated query in Firebird and I want to show the user how much percentage of the query has already been completed by the system. Are there any class or component capable of doing this? ...

dbDateTimePicker that accepts a Field of type string

Where can I find a free delphi component dbdatetimepicker that accepts a datafield of type string instead of the usual datetime field. Any help is greatly appreciated. Bty I'm using Delphi 7. ...