Questions tagged as 'delphi'

2
answers

How to get MD5 from a file in Delphi?

How to get the MD5 from a Delphi file?     
asked by 11.02.2014 / 21:24
2
answers

Calculate distance between two points by latitude and longitude

I need to calculate the distance in kilometers (km) between two points through their latitude and longitude. I have not found an effective way to do it. The latitudes and longitudes that I have are formatted as follows:    lat: -29.6518875...
asked by 19.10.2016 / 21:17
3
answers

What better way to create an app that works offline and synchronize data with the server? [closed]

I'm digging into the Mobile world, where I had the first challenge, which is to create an Android App for basic registration, name, age, etc. The complicated (at least for me) is that I have to update this data saved in SQLite from Android to...
asked by 20.05.2015 / 23:27
1
answer

Make unhook after hooked

To make a hook I know, I do the following (dummy variables): MSGBOX:=GetProcAddress(GetModuleHandle('kernel32.dll'),'MessageBox'); ReadProcessMemory(INVALID_HANDLE_VALUE,MSGBOX,@OldMSG,sizeof(oldcode),b); Jmpmsg.push:=$68; Jmpmsg.PProc:...
asked by 27.11.2015 / 02:30
3
answers

How to free all memory allocated by an object - Delphi

What is the best way to release all memory allocated by creating an object to the S.O. Let's not consider: Objeto.Free; Objeto := Nil; Sysutils.FreeAndNil(Objeto); Would there be more ways to free up memory for OS?     
asked by 18.02.2014 / 13:35
2
answers

What is the difference between the TSQLDataSet, TSQLQuery, TSQLTable, and TSQLSimpleDataSet components?

In Delphi, following the line of the TTable and TQuery components in the component palette BDE we also have similar components in the dbExpress palette which are TSQLQuery and TSQLTable , and we still hav...
asked by 23.04.2014 / 05:00
1
answer

Increasing and decreasing ordering in ClientDataSet

I have to sort clientdataset for 3 fields at the same time: 1 - Active (0 or 1) 2 - date (dd / mm / yyyy) 3 - name The problem is that I need to do different sorts for each of them, the 1st descending and the other ascending. I...
asked by 17.02.2014 / 14:30
2
answers

Using methods from a DLL

I'm having to use methods from a DLL that was developed by third parties. I have only the ".DLL" file. The DLL documentation is scarce ... there is an example of executing the method I need in VB Private Const TamMsgErro As Long = 1000 Dim...
asked by 20.02.2014 / 19:49
3
answers

Last directory folder

How do I get the last folder in a directory. Ex: C:\Program Files\Skype The last folder would be Skype.     
asked by 29.10.2014 / 00:08
1
answer

Webservice delphi soap with authentication

I'm using delphi to read a webservice from an insurance company. It turns out that it comes in XML format in SOAP. I make the WSDL import get the methods. But to connect to the Web Service I have to send a token that I do not know how t...
asked by 19.11.2015 / 10:53