delphi

How will I convert characters? Or other solutions.

I found out (though my other question) that my IME outputs Hangul Compatibility Jamo (U+3130 – U+318F) instead of regular Hangul Jamo(U+1100 – U+11FF). So I tried asking a question in superuser about other IMEs, no replies yet. Should I just convert it myself? What exactly does that entail? Is it too complicated? Any ideas on how to? ...

Delphi: problem setting length of a TByteDynArray

Question closed (answer accepted) replaced by http://stackoverflow.com/questions/3157732/delphi-7-access-violation-tbytedynarray-problem) I have the following delcartion given to me MyPhoto = class(TRemotable) private FhasPhoto: Boolean; FphotoData: TByteDynArray; published property hasPhoto: Boolean read FhasPhoto write Fhas...

Recommended way to concatenate several HTML files

I'm looking to generate a single HTML file from the content of multiple HTML and text documents (emails). I'd like some recommendations about the best way to handle this. For instance, at the most naive level you could extract everything within the tags of the HTML and put it inside a <div>. Plain text would go inside a <pre>. Of co...

How to find the "foreign key" field name on a nested TClientDataSet?

Given a nested TClientDataSet, how could I find the link field name on the detail TClientDataSet? I'm copying data from one TClientDataSet to another (record by record) and I would like to automatically ignore the link field. I could also copy the data using the TClientDataSet.Data property but I still would need to clear the link and ...

Replace string that contain #0?

I use this function to read file to string function LoadFile(const FileName: TFileName): string; begin with TFileStream.Create(FileName, fmOpenRead or fmShareDenyWrite) do begin try SetLength(Result, Size); Read(Pointer(Result)^, Size); except Result := ''; Free; raise; end; Free; ...

WCF service exposed as ASMX won't accept parameters

Hello. I have a server/client application developed in Delphi 2006. The client is Win32 and the Server is a .net 1.1 webservice. We are in the process of updateing this project, but it has to be done in small steps. I started with the server and created a WCF project in VS2010(C# .net 4.0). The first step is to get the server running i...

Making a custom control more testable in TestComplete

(This might be better in the TestComplete forums, but I thought I'd give it a shot here anyway) We are looking in to automated testing of our Delphi 2010 application with TestComplete. The main control that our application uses is our own custom control that derives directly from TCustomControl. (For reference the control is like a ...

How to set breakpoint in Delphi JVCL units ?

I'm debugging a Delphi code that use TJvProgramVersionCheck component from the excellent JVCL libs. So I'd like to put a breakpoint somewhere in JvProgramVersionCheck unit but it doesn't work. The breakpoint icon show a cross - not active ! I tried to put a breakpoint when calling the TJvProgramVersionCheck method, do a debug "Step int...

Windows Global Keyboard Hook - Delphi

I've created a GLOBAL keyboard hook DLL, using source code found on the internet. For the best part it works brilliant, except when it comes to browsers. It picks up every key in the browser except, it seems, when the browser gets focus, it looses the first key that is pressed. Tested this in IE and Firefox and it seems to be the same f...

What's the difference between public and published class members in Delphi?

Please could someone explain me what's the difference between public and published class members in Delphi? I tried to look at Delphi help and I understand that these members have the same visibility, but I don't understand very well how they differ and when should I use published members instead of public ones. Thanks a lot. ...

Delphi 7: Access violation - TByteDynArray problem

I am fairly new to Delphi & have to code a SOAP client. Importing the WSDL generates this code (which I obviously can't change as I obviously have to comply with the server side) DataPart = class; Message = class; eMessage = class; eventType = ( send, de...

How to use TList in INNO

I'm currently creating an installer using INNO and I'm no pascal expert. Is there any way to use a TList object from within Inno, all I get is an "Unknown Type" error on compile. ...

Files built with Delphi 2010 report virus/trojan

I tried to email a DLL-file built with Delphi but received an rejection email reporting: "Your email was rejected because it contains the Trojan.Delf-9364" So I uploaded the file to http://scanner.novirusthanks.org and sure enough it reports a positive in one of the virus scanners: "F-PROT6 20100630 4.5.1.85 W32/Swizzor-based.2!Maxi...

Delphi DLL - TClientSocket events.

I have a DLL with a TClientSocket component, it is used to talk to a Telephone System Machine. The DLL only have PChar parameters in the exports methods, and is not using packages. When I load the DLL with Delphi app, all the events works fine, no problem so far. My customer is calling this DLL from a console Win32 Cobol program, and t...

Which is preferable: Free or FreeAndNil?

Hi all, What is the basic difference between Free and FreeAndNil? Is FreeAndNil = Free + Nil? When should i use Free and when should i use FreeAndNil? I am not getting these when goggling can someone help me. Thanks in advance. ...

COM method offsets in Delphi

In Delphi, how do I find out the the address of a COM method? I can hardcode the offsets //0 is the offset of the QueryInterface method p := TPonterArray(pointer(SomeInterface)^)[0]; but I would prefer to use symbolic names. The folllowing obviously does not work: var M : TMethod; ... M := TMethod(SomeInterface.QueryInterface); Tha...

Windows appearing off edge of screen (Delphi)

Windows in my application are popping up off the edge of the screen, and this of course is a problem because some of the windows are modal and can't be dismissed (you don't even know they are there). I'm using the TurboPower Orpheus component which remembers the location and size of each form, then restores it when the form is shown aga...

E-mail arrival notification with Indy IMAP client (Delphi 2009)

I am working on a deamon application that uses e-mail inbox as its input queue. Response times should be as high as possible with server overhead kept to minimum, so polling e-mail inbox is out of question. As IMAP protocol enables the notifications on new e-mails, this is ideal for the application. However, I've run into troubles when ...

Timage1 and Timage2 inside Timage3

hi is it possible to insert Timage1 and Timage2 inside Timage3. if my Timage1 is 100x100 and my Timage2 100x100 then they will be side by side inside 200x100 in Timage3 is it possible to do so? thank you ...

Delphi 7 : Converting (serializing?) an object to TByteDynArray (for SOAP)

I use Delphi 7 and import from a WDL file to create a SOAP client. Delphi generates interface code with the published functions from the WSDL and the types (classes) of parameters for those functions. Delphi has determined that something like this Message = class(TRemotable) private FMessageID: Int64; Ftimestamp: TXSDateTim...