Delphi is a language for rapid development of native Windows, OS X and iOS applications through use of Object Oriented Pascal. The name also refers to the Delphi language (a modern evolution of Object Pascal) as well as its IDE, which is used to help edit and debug Delphi projects.

learn more… | top users | synonyms

0
votes
0answers
8 views

Combining Lazarus LCL and OpenGL

I recently moved a large program from Delphi over to Lazarus. Most of the bugs are sorted out, and I'm thoroughly impressed with Lazarus / FPC. But there's one bug I can't quite figure out. My ...
0
votes
1answer
41 views

Delphi XE2: Sharing a variable between two different processes?

I need to share the value of a Boolean variable between 2 running programs (e.g. MyProgramA.exe and MyProgramB.exe); these are different programs, not instances of the same program. I would prefer a ...
0
votes
1answer
25 views

Get the array of strings from the Resource Stream

=Getting DATA from Resource is like this: function GetMyRes(resname:string):string; var rStream: TResourceStream; s:string; begin rStream := TResourceStream.Create(hInstance, resname, RT_RCDATA); ... ...
3
votes
1answer
22 views

Delphi - Excel: Define a non-contiguous range

What I have is a sheet with data and I want to define a non-contiguous range that can be used to, as an example, create a chart. As long as the range is rectangular it's pretty easy defining the ...
1
vote
0answers
35 views

CoInitialize in Delphi DataSnap server application

I have an XE2 DataSnap server (Windows service) which uses a 3rd party out-of-process COM component within it's methods. Being COM, I understand it requires the CoInitializeEx and CoUninitialize ...
1
vote
0answers
32 views

MODI.Document OCR Issue

I'm using (a slightly modified version of) the following code to successfully OCR bmp files (found -among other places- here: ...
0
votes
0answers
23 views

Retrieve XML - TChromium web Browser

In Delphi XE I am loading a url using TChromium WebBrowser. A XML file is returned, however I am not sure how I can retrieve the XML file or String so that I can begin parsing it. I have tried ...
0
votes
0answers
45 views

How can I cancel the Abbrevia Unzipper file extraction?

I am using Abbrevia 5.0's TAbUnzipper component to unzip a password protected zip file (created with Abbrevia). I've created an OnNeedPassword event handler which invokes a password dialog and ...
0
votes
1answer
44 views

Search a dbgrid

I have delphi 7. I want to search for data inside a dbgrid That I have linked to excel using a adotable and a data source. I have searched the internet and only found how to create a new excel ...
0
votes
0answers
31 views

Zebra ZXP series 8 Delphi API

Have anyone worked with Zebra ZXP printers ? I need to access the printer from Delphi, Feed one card to Contact reader, do some stuff with the smart card, then access the contactless chip, again do ...
2
votes
1answer
36 views

PromptDataSource and password

I use PromptDataSource to allow users to setup a database connection. connectionString := ADOdb.PromptDataSource(0, ''); However I can't get it to work with "Allow saving password" when using the ...
-3
votes
3answers
70 views

Setting brush.color in listview's oncustomdraw functions crashes the application

I have some dynamically created listview components with dozens of items, and over 24 columns. When i set some canvas properties (brush.color, for example) in the onCustomdrawXXX events, or ...
0
votes
2answers
78 views

Delphi, Authentication from database

I am planing to include authentication capabilities in my program. I need information about switching between table records. My current program is only reading the username and password from the ...
0
votes
0answers
40 views

ODAC: nvarchar column value is truncated

I am using ODAC library version 8.6.12 to connect to oracle with Delphi 6, I have a nvarchar(32) column as you can see it has a maximum of 32 characters and lets say that I always use 32 character ...
2
votes
2answers
71 views

How to define “UCHAR * POINTER_32” and “VOID * POINTER_32” types in Delphi?

Background: Translating the IP_OPTION_INFORMATION32 and ICMP_ECHO_REPLY32 structures for 64-bit compiler I got stucked with data types to use there. Structure definitions from the reference: The ...
0
votes
1answer
69 views

Perform Delphi POST without Indy or other 3rd party module [duplicate]

Does anyone have a snippet of pure delphi on how to perform a web POST using Delphi with only native Delphi 2010 functionality?
0
votes
0answers
93 views

Enable a form in delphi when entering a site

I'm finishing a project at work where delphi have requirements to trigger a form from the visit at some site in browsers internet explorer, google chrome, firefox and opera. The form is simple EOX ...
0
votes
0answers
46 views

Looking for example code of DataSnap REST Server receiving JSON object from Android through HTTP POST [closed]

I'm creating an Android application which should post data to a database. The app passes a JSON object with HTTP POST. I want to use a DataSnap REST server coded in Delphi (XE3) to receive the data. ...
-5
votes
2answers
86 views

How solve Incompatible types error (E2010) with class casting in Delphi?

I have a code like this: TBase = class end; TClassA = class(TBase) end; TClassB = class(TBase) end; Now I need of a procedure with a parameter, this procedure must be accept TBase object and ...
2
votes
1answer
53 views

Reply to address in Indy 10?

Since I upgraded to Indy10, I've noticed that the ReplyTo field (Msg.ReplyTo[0].Address) on received TIdMessage(s) seems to be getting filled in with the address from the Return-path header if an ...
0
votes
1answer
92 views

How to change the cursor type to be like Excel grid cursor?

How i can change the cursor type in a TStringGrid to be like Excel grid cursor The Excel cursor is not a cursor type in delphi or system32. I used the code in swat example where the cursor is in ...
0
votes
0answers
66 views

How can I scan more than one page per time using DelphiTwain?

I cannot scan more than one page each time I start scanning. I use Delphi 7, DelphiTwain and Win 7. Scanning more than 1 page is a process related to the scanner or the code of the Twain? I use for ...
3
votes
2answers
85 views

ListBox in another ListBox in Firemonkey Style Designer

I want to make a quite complex interface where one ListBox is in another one. First, all elements of ListBox1 get a style "CustomItem" from Style Designer in Firemonkey: Item := ...
2
votes
1answer
76 views

Change application taskbar icon at run time(ignore shortcut icon)

I have a program which has two different modes that users can be in. Depending on the mode I want to change the taskbar icon to reflect its state. I've found application.icon will allow me to set any ...
-1
votes
1answer
55 views

Save color from ColorDialog and load it into labels

I'm developing the Tic Tac Toe game with an internet connection for check worldwide scores. I've also added a ColorDialog so the user can choose his own color for X and O inside the grid. Look at ...
-1
votes
1answer
76 views

how to stuff a byte in an AnsiChar?

Due to the incertitude about the data nature we began to read some bcd values to Chars. For example if the data in the file is 6 bytes long so we would read it like that: var fifi : TextFile; ...
-1
votes
0answers
76 views

Delphi 7 , Error with parameters

I asked a Question about Parameters a while back and it works wonders but got this weird error today with it. My Coding look as follow : ` With ADOQuery1 do Begin Close ...
3
votes
1answer
64 views

Programmatical log in by providing credentials

Consider windows users A (with administrative rights) and B (restricted access rights). Also a data folder located on the server to which only user A has the access to. The challenge I’m facing is to ...
0
votes
0answers
57 views

Delphi XE4 dynamic panel alignment order

I have a Firemonkey app. that dynamically adds a number of objects derived from a TPanel with Align := TAlignLayout.alTop; However, the last object ends up at the top, with all the others in the ...
3
votes
1answer
69 views

brcc32 produces Corrupted .RES file

I am building Delphi Projects from the command line and am using brcc32.exe to build the .res files. I have added a number of custom strings to my .RC so it looks like this. (There is a little ...
1
vote
1answer
71 views

Is the difference between binary and hex-string representations of my key the reason for unexpected output from DCPCrypt?

I'm having trouble encrypting and decrypting some information with the DCP Crypt library. I'm using Delphi XE and the functions posted at PHP to Delphi and back Encryption-Decryption using Rijndael, ...
7
votes
1answer
151 views

Why doesn't TPageProducer remove quotation marks from strings?

I'm trying to debug behaviour that has only appeared when my large app - working fine in XE3 - is run after compiling with XE4. The issue seems to cause some quoted strings (eg "MyString") to retain ...
2
votes
1answer
44 views

Delphi Indy Ping Error 10040 after upgrade from XE3 to XE4

I created a Ping function that utilizes the Indy TIdIcmpClient object. It has worked flawlessly for years. After upgrading from XE3 to XE4 the same code is now generating error 10040 (Message too ...
-1
votes
2answers
50 views

How to compute a correct MD5 for Fastspring API with Delphi and Indy components?

I need to integrate my application with Fastspring. I have written a key generator that receives inputs from Fastspring, through HTTP POST. The input includes a MD5 hash code, that I need to verify. ...
0
votes
1answer
82 views

Exporting data from a DBGrid to Excel

I wanted to know if anyone ones a way that I can export data from a DBGrid to Excel ? I am using Delphi 7 , Excel 2007 and ADO . Any help will be appreciated.
2
votes
1answer
81 views

Windows named pipe doesn't respond correctly for concurrent requests

I used named pipe for internal communication inside of one program (on Windows XP). The named pipe works fine for multiple connections when I connected 2-3 clients. However it seems to be jammed when ...
3
votes
1answer
111 views

Delphi if else if else statement not working “Type of expression must be BOOLEAN”

I am trying to make a currency converter in Delphi, and it has been a while since i last used Delphi so i am a bit rusty. When i am trying to make an if, else if, else statement it is giving me the ...
0
votes
0answers
29 views

Update Cookies in idHTTP

I have a problem with the following code, the problem is that when I use two different pages in a row still shows the same cookie, what I need is that it always shows the same cookie The code: for ...
0
votes
2answers
101 views

How to add application in “Open with…” section of system menu in Windows 7?

Real problem and question is: How to add key in Registry hive "HKEY_CLASSES_ROOT" in Windows 7? I know where to create the key, but it can be achieved only when I run program as an administrator. Or ...
0
votes
1answer
116 views

Delphi XE3 third party VCL components in the XE4?

I use Delphi XE3 and I want to migrate to the Delphi XE4. Can I use the same third party components as I used in XE3 in XE4? In previous versions happened many changes, which precluded the use of ...
1
vote
1answer
56 views

get error with just a 'public' at delphi TForm class

TForm1 = class(TForm) Button1:TButton; Memo1:TMemo; end; that's normal code about delphi form. TForm1 = class(TForm) public Button1:TButton; Memo1:TMemo; end; just add a public ...
-1
votes
1answer
45 views

MatchesMask for Widestring?

I need MatchesMask (or similar) function for WideStrings, not only string. I can't find any such function in TNT Unicode Controls. Where can i find it for Delphi7, maybe in some library?
0
votes
2answers
62 views

How to stop event propagation despite WS_EX_NOACTIVATE?

I have a semi-transparent form (using AlphaBlend) that acts as an overlay. For the user to still be able to interact with the window below I have set WS_EX_NOACTIVATE on my form so all right and left ...
0
votes
1answer
65 views

File read access from threads

I have a static class that contains a number of functions that read values from configuration files. The configuration files are provided with the software and the software itself NEVER writes to ...
-1
votes
0answers
83 views

Which method of files finding is faster? [closed]

I need to choose between 2 methods in procedure-- it finds filename list matching some masks list. Masks list is string like: MaskList:= '*.txt ff???.inc *name*.h??'; Which method may be faster ...
3
votes
1answer
75 views

Manipulating bits of byte vars in Delphi

I am pulling data from a .txt file byte by byte using delphi. For each byte, I need to swap the beginning and the ending bits of that byte. I've been searching google for hours but I can't find any ...
-1
votes
0answers
47 views

How delete a chat with Skype4Com using Delphi?

i'm making a chat to talking with my clients using Skype via API on Delphi 7.0. After the chat is over i wanna delete the history of convesation to avoid clients add my user on skype. Thanks in ...
0
votes
1answer
32 views

What is the default cache refresh time of InternetOpenURL?

One of my programs uses InternetOpenURL without the INTERNET_FLAG_RELOAD specified. I see that the call will read the web page from the cache (if it exists). I changed the web page 5 days ago and I ...
2
votes
2answers
118 views

Is it safe for two threads to read different regions of the same block of memory?

Is it safe to use the same memory chunk in more than one thread partially like below: const BIFFER_SIZE = 1024; var ABuffer :PChar; ABufferWrite :PChar; ABufferEnd :PChar; begin ...
0
votes
1answer
29 views

Msacces stored query and delphi using ado error

I have prepared this query in access and it is working ok. SELECT Kod, Unvan, CepTel, Telefon, (SELECT Sum(Borc.Tutar) from borc where carikod=kod) AS BorcTutar, (SELECT Sum(Alacak.Tutar) from ...

1 2 3 4 5 425
15 30 50 per page