Click here to Skip to main content
15,888,221 members
Everything / Programming Languages / Delphi

Delphi

Delphi

Great Reads

by Chad Z. Hower aka Kudzu
Delphi has some big gotchas with interfaces. Learn how to bypass them.
by ADMGNS
An alternative method to Catmull-Rom, Chaikin or Bezier curve smoothing methods
by Issam Ali
How to pass native (Delphi) callback pointer to a .net COM assembly
by Denis Murashov
In the article I describe the possibilities of standard Delphi DFM-serialization mechanism. I start from the basics and then try to cover more complex situations.

Latest Articles

by ADMGNS
A new method for 2D polyline simplification and also smoothing that alternative to Douglas-Peucker and curvature-based simplification algorithms
by ADMGNS
Very simple, noise-based color visual cryptography for images
by Max Kleiner
We use a Command Line Interface with OpenWeatherMap (PyOWM) to make it easier to use the OpenWeatherMap API in Python.
by ADMGNS
An alternative method to Catmull-Rom, Chaikin or Bezier curve smoothing methods

All Articles

Sort by Title

Delphi 

19 Apr 2013 by iDebD
Hi, I am trying to show a message box item as "اردو ویکیپیڈیا", this is a unicode character; I am using Delphi 7; but in the editor it is showing as ????? ?????, it is not supporting unicode;Can any one tell me what I need to do in the Delphi editor or project to make it unicode...
19 Apr 2013 by Eugene Mayeski
In your case the simplest would be to create UTF8 representation of your string, write ConvertUTF8ToUTF16 function or find an existing one and then call MessageBoxW(0, ConvertUTF8ToUTF16('yourUTF8Constant'), ... ). This way you can deal with any Unicode text in non-Unicode Delphi.Edit: seems...
19 Apr 2013 by Sergey Alexandrovich Kryukov
I'll tell you the sad story, but some solutions do exist.Unfortunately, this version of Delphi had limited support of Unicode. Borland VCL was not Unicode-enabled at all, so, with the controls you are using, you cannot do anything at all. You would need some custom controls replacing VCL....
5 Oct 2014 by SWStander
Everytime I run this SQL it says-syntax error (missing operator) in query expression 'row_number() over (order by RunTime)'Table Name:EventsDetailColumns: MemberID, EventNumber, RUnTime adoqueryAdmin.SQL.Text:=Select EventNumber,MemberID, RunTime, ROW_NUMBER() OVER (ORDER BY...
6 Oct 2014 by vangapally Naveen Kumar
try like this declare @Test Table(id int identity(1,1),number int,runtime time)insert into @Test values(1,'17:32:19')insert into @Test values(2,'17:33:22')insert into @Test values(3,'17:32:20')Select Number,ID, runtime, ROW_NUMBER() OVER (ORDER BY runtime) AS Place from...
12 Dec 2014 by Yuriy Magurdumov
Calling native methods from .NET application via standard Windows Named Pipes
11 Oct 2015 by Bismark Appah
3 Jun 2011 by Alexey Merson
If you have a SOAP server created with Borland Delphi and a SOAP client created with .NET, then you can't get it working out of the box.
22 Apr 2011 by saeid.piran
how can i solve this erroan error occurred while attempting to initialize the borland database engine 210Aplz help me
22 Apr 2011 by OriginalGriff
A quick search says that it means that Borland can't find the relevant DLLs, either because the installation is corrupt, or Delphi is not installed.Google[^]Check, and try again!
22 May 2013 by NeoGetz0
Most of the 3G modem (USB sticks) are support voice call, but all of them can do this only through the dashboard software which is shipped with them.Do you have any information, how to get the voice from and pass the mic data to the 3G modem?When I plug it, it installs 4 COM ports: ...
12 Jan 2014 by Ravuri Vasu
Hi,I am also working on same kind of implementation and I understand that when we initiate a call through NEMA port through AT command, it will call the destination number. The other port (Application Interface/Speech port) will start sending binary data once the call is answered by other...
21 Apr 2010 by jaliljoon
hi dear Corinna John i am jalil i want ask you a question ?i am trying to hide some data on some of video frames i want ask you how can i do that for all video format i think we should edit the video but i try my data be hidden how can i do that i hope that you help me.if you have some...
21 Apr 2010 by The Manoj Kumar
Seems like you copied and pasted from a mail :). I think you should search for some research papers on the same thing. Either try Google scholar or Microsoft Scholar search. By the way, don't ask questions like a Hacker ;)
21 Apr 2010 by CPallini
Please, post your question at the article's own thread. :)
14 Apr 2010 by roSSi@21
How to make Biseksi and Regula Falsi Methotds with Delphi?Need helph...Thanks...
18 Apr 2010 by The Manoj Kumar
My suggestions for you are:1. These both are fairly simple Numerical Methods, so read their details and how they work.2. Find an example of both of these methods in any other language (that you are comfortable with).After you are done with both of them you can simply start with the same...
5 Apr 2015 by raypetriut
Helloi need to some information about ram such manufacturer name , part number , voltage and ... . i don't want to use WMI because itt cant get all data . the best way is SPD (Serial presence detect) table. CPUz is also use SPD to read ram information .so i want to know how can i access to...
26 Apr 2012 by EddyGuzman
Hi to all. I need to set a max. of 2 hours after a first selection, this in Delphi 5. This is what I mean:I have two date-time-pickers set to show only the time, when I select a Time in the first one I need to limit the second to show or to select just 2 hours after the first (Ex. If in...
26 Apr 2012 by Sandeep Mewara
To put it out of unanswered list. OP found the solution and updated:I found the solution...it was so easy...To anyone who cares about it:tmrEnd.Time:=tmrEntry.Time+ EncodeTime(2,0,0,0);
7 Mar 2012 by irzyxa
I wrote NSE, I need make overlay icon. On xp it worked fine. On win 7 when I try add icon into system imagelist SHIL_JUMBO I take result -1. Why? P.S. I use interface IShellIconOverlay
7 Mar 2012 by irzyxa
it's my example on Delphifunction GetImageListSH(SHIL_FLAG:Cardinal): HIMAGELIST;type _SHGetImageList = function (iImageList: integer; const riid: TGUID; var ppv: Pointer): hResult; stdcall;var Handle: THandle; SHGetImageList: _SHGetImageList;begin Result:= 0; Handle:=...
24 Oct 2012 by jma2400
ImageList_Replace (-1,HIcon) will add an icon to the END of the ImageList...
22 Aug 2018 by rezki_z
HI i have this code its work fine when i search a number inside column I want the same code when i search a name in column and a date inside different column thinks procedure TForm1.sEdit1Change(Sender: TObject); var a :integer; begin IF sEdit1.Text '' then begin...
22 Aug 2018 by Jochen Arndt
You just have to know about the SQL syntax. As already mentioned by digimanus you can use AND within WHERE clauses. But you should use parametrised queries to avoid SQL injection - Wikipedia[^] when the data has been entered by users. Such allow also passing data by value instead of string...
13 Jun 2013 by VikasOTS
I am working with Delphi7 and TPanel. When I click on panel header its goes to Undock mode means(breakout from frame). I need to set inside frame that panel without click on the header. Is there any property or method by which set breakout panel into frame.Please help me.?
11 May 2010 by Gustavo Ricardi
A Remote Desktop software built on AJAX, JSON and HTML5
13 Aug 2010 by Gustavo Ricardi
A Remote Desktop software built on AJAX, JSON and HTML5
30 Dec 2012 by User 8984948
An introduction to anonymous methods in Delphi
8 Aug 2010 by marahismail
could you please provide me with the equivalent assembly code relatedto the code written in C++, " tracking code form live camera"best wishes
8 Aug 2010 by Christian Graus
What does this have to do with javascript or delphi ? Compile your C++ code, and then read the assembler that is produced. No, we're not going to write it for you, that's an insane amount of work.
8 Aug 2010 by DABBee
You dont really mean you want the assembly code do you. Surely you meant to say something else - please check your question - look up what assembly code is, I suspect you are not clear on this.NOP
8 Aug 2010 by Sauro Viti
"tracking code from live camera is a vague sentence, but I suspect that there is a lot of work under the scene: if you can do the work using C/C++, why do you want to do it using assembler? It could be a titanic work, hard to do, error prone, and difficult to debug!
12 Jan 2012 by TerenceZ
I need to copy records from Paradox-7 tables to SQL Server 2008. I have created a stored procedure in SQL Server 2008 with a table-type input parameter. Using Delphi 2010, how can I send a Paradox DB table's records to this stored procedure? The tables already exist in SQL...
29 Feb 2012 by nortee
Hi,I know this is probably a bit too late, but since there haven't been any responses, I might as well give this a shot. I may be wrong regarding this, but shouldn't that code looks something like: VAImpTable.Open; VAImpTable.First; VAImpTable.FetchAll; // Make sure we...
7 Feb 2013 by Nirali R shah
Hello..... I am implementing Audit Trail in Sql Server 2008 R2 and Delphi 7. I have created trigger in master and detail table. and called SP with cursor and some other logic. while trying to do data entry in Master - Detail form I am getting Error .."CANNOT Save - Cannot create new...
20 Dec 2011 by Gross Man
I need to develop a APP that seems like Frontpage, Dreamweaver, Visual Studio, etc.User can pull a component then it save the HTML code.For Example: User pull a text component, App auto write this code "", user can change the component name...
20 Dec 2011 by Amir Mahfoozi
It's not an easy task to do it completely yourself.You can use office interop services in .NET or OLE objects in Delphi to achieve this.If I were you I opened a word document for them and let them do what ever they want in there...
5 Nov 2012 by Hendypodz
Hello all,I' m Hendy. I'm newbie in neural networks I was trying to develop some ocr project and implement backpropagation method. I have been already sets the train function, but I still confusing about using the output result. How can I use the output to recognize some character? Do I need...
29 Oct 2014 by Karozzi
I want to know the best tools to unpack Inno Setup-based installers and recover the script and installer files of any IS installer. Im currently using InnoExtractor application. If you know other similar ways/applications please let me know.Thanks in advance!
18 Aug 2010 by jotorres
Hello experts, I have a small question: What language would any of you recommend to create a client/server application. I need to create one for a project that requires several clients to a specific server. I've been looking around and found that VB is pretty good at this, but at the...
18 Aug 2010 by Nyarost
Well, you can use Java. It has a lot of frameworks. For example: Apache MINA is good choise. Java allows you to build your app very fastly. If you want performance, check C++. You can use boost framefork ;)
18 Aug 2010 by Niklas L
I think you should focus on the design/technique used instead. Then the choice of language will follow; which language/IDE supplies a sufficient framework, how are you planning on debugging your application, what are you comfortable with, etc. I would not recommend writing your own protocol for...
18 Aug 2010 by Aescleal
If it's a traditonal "thick client" connecting to a central database I'd give RealBASIC[^] (or as it's called these days, RealStudio) a look. It can connect over ODBC to databases, is quite a nice OO language under the covers and you can interface it to C if you need something with a bit of...
18 Aug 2010 by Dylan Morley
Languague doesn't matter so much - they're just different tools to accomplish a job. What matters is how the users are expecting to work, your infrastructure and networkIf you go with some sort of web interface, you only need to design a site that has access to the database then expose the...
18 Aug 2010 by mido_star_120
i thing u may use c# it provide highly fuctionality in client/server service
18 Aug 2010 by jotorres
Hello all once again, So here is what the client wants (overview):1. Needs access to all patient files no matter where he is. (of course this means in what ever office of his he's in)2. With this same application, he needs all of his employees, (secretaries etc...) to at least log...
6 Dec 2011 by Mashinchi
Hi, I think that platform not matter for you. all of them support Server/Client applications but if you want to develop windows application you can use multi or 3 tiered applications and use COM+ technology to connect to your server remotely. For more information you can use Delphi 3tire...
6 Dec 2011 by JackDingler
Dylan Morley says, "Use whatever you are most skilled in!"Just to be a wet blanket...Your question gives me the impression that you're new to programming.This is big project for a beginner.Looking at this item:1. Needs access to all patient files no matter where he is. (of course...
6 Dec 2011 by Arthesh G
go for java or else c++. java is a robust application and it has well built frameworks
10 May 2012 by JackDingler
This effort is a waste of time.You should be blocking sites from your firewall, or use third party parental control software. Which you choose is determined by your needs.Watching every window on your system, and constantly scanning against a database is going to have a severe impact on...
11 May 2012 by Stefan_Lang
Independent of whether or not you really need that, this is the Quick Answer section, not the Ask For Code section.We are not going to write that code for you any more than the garage next door will build you a car from scratch. The garage may fix your car, if you have one. Or we may fix...
28 Apr 2010 by #realJSOP
This is not a programming question, and is not appropriate for this forum.
28 Feb 2018 by Antonio Petricca
Win32, compiler independent, and extensible passive debugger
2 Apr 2013 by Issam Ali
Building installation project with serial number validation using VSI, Orca, C++, or Delphi.
13 Apr 2022 by avianrand
I've done this many times in vb.net and thought I had it working in Delphi but I'm stuck. I'm using Delphi 10.2. I'm reading a PDF file into a memory stream and then converting it to a byte array so I can store it in an MS SQL file table. I...
13 Apr 2022 by avianrand
Well never mind I guess. On a whim I decided to just use TBytes and the whole solution works now.
19 Aug 2017 by ShakalX
Hello guys. I need help. I'm doing an auto click with left mouse, but I need it to click only on a specific window and it can be minimized and continue to click while I can do other things on the pc. How to navigate the web etc. This code works the wrong way. It clicks and I can move the mouse...
10 Feb 2011 by bsaurabh
Hi all,I have a Delphi built DLL contaning a function which takes a argument having data type as double. I need to call this function from C# code.Here is the code:-[DllImport("C:\\Smhita20\\Dmp.dll",CallingConvention = CallingConvention.StdCall)] public static extern void...
9 Feb 2011 by OriginalGriff
Looks like it is a Single rather than a double.Section 1.2 sort of suggests that: http://ultrastardeluxe.xtremeweb-hosting.net/wiki/doku.php?id=development:c_header_conversion[^]
9 Feb 2011 by #realJSOP
I haven't done pascal since 1990, so consider this to be a WAG...Delphi uses the real type (and variants of it), and .Net has float and double. Since you've already tried double, try using float instead and see if that works.Your problem may also be centered aroundf the string parameter....
17 Oct 2011 by Amir Mahfoozi
Probably you should accept PChar parameter rather than string parameter to become compatible with .NET.Double is compatible in both sides.
1 Dec 2013 by Reza Nabiloo
hi all.i want to create a Database window application. What do you recommend? C# or DelphiWhich is more efficient for this task? tell your reason and help me
1 Dec 2013 by ExcelledProducts CEO
Oh C# all the way. You can do so much more with C# than delph. C# has framework updated from microsoft enabling it to be more and more powerfull, faster. GUI designing in C# will be much more easier than programming in DELPHI. Also with C# you have the pre build libraries for database...
1 Dec 2013 by CPallini
You should choose the one you are more comfortable with. Both of them are good choices.
1 Dec 2013 by Karthik_Mahalingam
Prefer C# as we all here to guide and help dot net developers.
1 Dec 2013 by CHill60
Trouble with posting a question like this in Quick answers is that once you have one "answer" then your question drops out of the list and not many people will view it.You might be better off posting it in one of the General Programming forums as it is really about a discussion rather than a...
31 Oct 2015 by TheRedEye
After having been primary a Winforms C# developer, I am now being forced to move to Delphi 10. And although, so far, a lot of the differences seem relatively minor, the garbage collection seems VERY different.Can anyone give me some advice with how resources freeing works in Delphi? Baring...
31 Oct 2015 by Sergey Alexandrovich Kryukov
There is no garbage collection in Delphi, not at all. You need to allocate memory in heap and take care of deallocation yourself. You got some assistance in this with certain types, such as Delphi strings and interfaces.To learn how to do it all with Delphi, you have to… learn Delphi,...
28 Dec 2012 by User 8984948
The purpose here is not the mathematical stuff, but to provide two implementations of the factorial of a number in Delphi (Object Pascal).
24 Aug 2010 by nereone
Hello, I am stucked for few days and dont know what to do.I am working on a library written in c++ (the result is dll), which contains several functions. The DLL itself isnt using MFC, and is singlethread. These functions are then called from delphi application. Example of a...
20 Aug 2010 by Nyarost
1. String in C++ = PChar in Deplhi.2. extern "C" means C-style function calling. For delphi it is cdecl as soon as I remember. Cheers
20 Aug 2010 by Aescleal
I know nothing about Delphi but are you sure it can cope with a reference parameter? None of the other languages I use regularly (Java, Python) can handle C++ references so it might be same for Delphi and that's what's causing the problem.Cheers,Ash
21 Aug 2010 by Nyarost
Hi, checked both C++ and Delphi code. Don't see anything :( However this looks a little bit interesting: extern "C" __declspec(dllexport) int getName(int index, char* &name)Is there such thing as * & specifier in C++? Shouldn't it be extern "C" __declspec(dllexport) int getName(int...
26 Aug 2012 by Yılmaz Korkmaz
// fields before you callprocedure TForm1.buttonGetFieldsClick(Sender: TObject);begin memoTableFields.Clear; ADOConnection1.GetFieldNames(editTable.Text, memoTableFields.Lines);end;// after editing you can set memo listprocedure TForm1.buttonSetFieldsClick(Sender:...
9 Sep 2016 by Crytach Daiguren
Hey everyone!, Major question here that has been annoying me, Reason being is my code worked and now its stopped, It was rather spontaneous, The program works, as in the data is stored on the clipboard, But it doesnt write the text filesprocedure TForm1.BtnSaveClick(Sender:...
9 Sep 2016 by David_Wimbley
Given that it was working and now it stopped. I take that as nothing was changed to the code.This seems like a repost as i even recognize the code. What help did you get last time? I'm pretty sure you got told "doesn't write to file" isn't exactly a great description of the...
9 Sep 2016 by Patrice T
Quote:Reason being is my code worked and now its stopped, It was rather spontaneous, The program works, as in the data is stored on the clipboard, But it doesnt write the text filesIf it was working and stopped, it is linked to the data, use the debugger to see what is going on.You should...
20 Oct 2021 by Mickyle Govender
Hi, I would like to click on a item in a listbox and then have the item displayed in a richedit. Thank You What I have tried: procedure TForm1.Button1Click(Sender: TObject); var sItem:string; begin sItem:=ListBox1.Items[0];...
20 Oct 2021 by User 15364063
Assuming you have ListBox1.MultiSelect equals false and are interested only in the currently clicked item, then... Sorry I only know the c++ syntax, but I think should be easy for you to abstract my mixed 'if' example below ;) if...
9 Feb 2014 by omgade
Hi,Can i merge two adotable in single Adotable with old Adotable data ?Regards,Om
14 Oct 2013 by kleymanx90
Is DOMDocument::load equivalent to TXMLDocument.SaveToStream (in Delphi) ?i.e can i open any stream with DOMDocument::load ?
9 Jan 2014 by Member 10446575
Can i run exe files in iis .because i have one webapplication exe file thats'y asking you.
9 Jan 2014 by Gandalf_TheWhite
This can help you.http://social.technet.microsoft.com/Forums/en-US/d0c10cd8-4896-4738-8960-de352aad74a7/running-a-exe-file-in-iis?forum=winserversecurity[^]
12 Jul 2020 by Member 13901246
I am developing mobile app in FMX where i need Popupmenu but it is showing disable in ToolPalette i cant use it but in VCL its enabled in ToolPalette and can use it. I just want to know that firemonkey supports Popupmenu or my installation having...
31 Aug 2015 by Member 11618858
I know we can use ElementHost to host WPF control in c# Windows forms application and the WPF control can display correctly. But If I host WPF control in Delphi, WPF control can neither fill the Delphi parent control nor resize automatically when I am resizing the Delphi parent window....
11 Jul 2020 by Vivaan
I want to implement a delphi project i made to my PC/Laptop startup or by using a code or command in my project or other way, open to anything What I have tried: Not anything yet ,want to be open minded and want some advice
11 Jul 2020 by Richard MacCutchan
See startup add - Google Search[^].
11 Jul 2020 by Patrice T
Quote: I want to implement a delphi project No matter the language used, a project endup as an executable, an .exe, just excel.exe, outlook.exe, notepad.exe .... Quote: I want to implement a delphi project i made to my PC/Laptop startup The...
22 Apr 2018 by KajLao
Hello guys. I have a .NET application which I want to run in Delphi. So I am just wondering if it is possible to put Visual Studio C# source code in Delphi (C#). Will it work? What I have tried: I have tried it before but I got an error. But in theory it should work? Will try again when I come...
31 Dec 2017 by OriginalGriff
No. Firstly because C# is ... well, C# ... and Delphi is Pascal based, a language with similar roots, but which is not related in any practical way. Second because C# requires the .NET framework to do anything, the two are very closely related. Delphi does not support .NET - although you can...
9 Jul 2019 by Member 14150748
Greetings! I got a silly question, for I'd like to get some aid. I'm practicing the call of Web Services from Delphi7. I'm testing it with a WS made in C# 2010. That is what I got so far: This is the Web Service in C#: public class Service1 : System.Web.Services.WebService { ...
9 Jul 2019 by Member 14150748
Solved. Needed to add a line in Service1.pas Original: initialization InvRegistry.RegisterInterface(TypeInfo(Service1Soap), 'http://tempuri.org/', 'utf-8'); InvRegistry.RegisterDefaultSOAPAction(TypeInfo(Service1Soap), 'http://tempuri.org/%operationName%'); end. New: initialization ...
3 May 2016 by ThanhNT14
Hi all,I have small app (was written by Delphi 7) to delete a folder (include sub folder and children files).Main code of this app is below method:procedure TForm1.DeleteDirectory(const Name: string);var F: TSearchRec;begin //Delete image folder if FindFirst(Name + '\*',...
3 May 2016 by Jochen Arndt
It seems that with Windows XP the file search functions (Windows API functions FindFirstFile, FindFirstFileEx) will lock the directory.As a result the directory which is searched can't be deleted while the search handle has not been closed (like a file that is actually opened can't be...
23 Jul 2022 by Winston_D
I am trying to make a multiforms application by having only the main form created on start up and creating each new additional form dynamically as needed by creating that form object, using it as a modal and once that form's purpose is complete, it is freed from memory after it is closed. Only...
28 Jun 2012 by E.F. Nijboer
In case the user closes the modal form, it is already gone.Good luck!