Questions tagged as 'delphi'

1
answer

Get IP through WinSock - Return correct IP - Delphi

Good morning, I am using the method below to return the IP of the computer, but if I have an active VPN on the computer, it is getting the IP of the VPN first and not the machine. I would like to know if it would be possible to control which...
asked by 25.07.2016 / 14:44
1
answer

Error while compiling a project in delphi seattle for android sando SQLite

I'm getting this error while compiling for android. On windows, it compiles and runs the app without any problems. If anyone can help, I will be immensely grateful. [DCC Error] E2597 C:\Users\Public\Documents\Embarcadero\Studio.0\PlatformSDKs\...
asked by 17.08.2016 / 18:23
0
answers

Problem closing application with thread inside a component

I'm developing a component (visual indicator) that for searching the data in the Database and generating the indicator itself uses a Thread. This thread is inside the component itself. It works fine, except when I close the application and Threa...
asked by 21.07.2016 / 15:39
1
answer

Copy database file in use in delphi

I use the Absolute Data Base database. It is an embedded bank with multiple network connections. I am making a backup system to copy the .abs file generated by the database. The problem is that since the file is in use, I can not perform the...
asked by 20.07.2016 / 21:29
0
answers

Encrypting / Decrypting strings with Delphi

For the sake of knowledge, I would like to create my own very complex function for encrypting and decrypting program strings. I got this piece of code from the internet s1[1] := Char((Byte(s1[1]) shl 4) or (Byte(s1[1]) shr 4)); . It is...
asked by 21.07.2016 / 21:40
0
answers

How to add IdURI in Delphi 2010

I'm developing a project that I need idURI that is from indy and Delphi 2010 does not have. I need this to get a code and concatenate with the current date and send via url with that code at the end. Can someone help me install or pass me anothe...
asked by 13.07.2016 / 16:45
1
answer

Special Characters WebService C # SQL X Firebird Base

I have an integration made by Web-service (asmx) , C# e SQL Server . This Web-Service is consumed by third-party software that uses Delphi and Firebird. The problem is that by integrating a string field that has special characters, ques...
asked by 05.07.2016 / 15:06
1
answer

Failed to create field in SimpleDataSet in Delphi

I have a SimpleDataSet that already had records from a database. I added a field to work in memory. When I right click, the Create DataSet option does not appear and when I copy the error project: SimpleDataset Field 'CNS' not found as print. Do...
asked by 07.07.2016 / 15:50
1
answer

Sending emails in Delphi

I'm using the following code snippet for sending emails in Delphi, but when I try to send an attachment, the attachment becomes part of the email body. What could be wrong? function SendEmail(sendTo, subject, body: string; attachFiles: TStri...
asked by 07.06.2016 / 13:32
0
answers

Delphi Datamatrix Static Size

I'm working with Data Matrix I'm using Unit DataMatrixBarcode, dmtx. var options:DatamatrixEncodeOptions; options := InitializeDatamatrixEncodeOptions; options.moduleSize := 4; options.marginSize := 10; options.rotate := 0; options.scheme :=...
asked by 18.10.2016 / 15:14