Delphi

Delphi 6 command line compile: NO DCU’s

柔情痞子 提交于 2020-01-13 06:12:22
问题 When using dcc32 against the .dpr file it produces a dll but no dcu’s. The project level .cfg is using the –N switch to set the path but nothing is in the directory specified. It must see the .cfg as the –E switch is working. I tried to use brcc32/brc32 against the .dpr file before a call dcc32 but either one gives me the Error projectName.dpr 3 1: Expecting END? I need the dcu’s from project1 for project2 which when I run the dcc32 against the .dpr it errors stating it can’t find the missing

Why is my Delphi 6 program triggering a request for admin rights upon install on only a minority of Windows 7 systems (InnoSetup)?

£可爱£侵袭症+ 提交于 2020-01-13 05:47:12
问题 I have a Delphi 6 program that for most users installs fine while running under a user account without admin privileges. However, on some systems it triggers a request for admin rights. Unfortunately mine isn't one of them so it's hard for me to diagnose this problem. I use InnoSetup 5.1.9 to build my install programs. How can I figure out what I need to change about my installation program's configuration to neutralize the need for admin rights on some people's systems? It's causing trouble

reading SVN:externals from working copy

眉间皱痕 提交于 2020-01-13 05:29:08
问题 Until recently it was simple to read all the SVN:Externals referenced in a subversion working copy by just reading some text files stored in the .svn subdirectory. With the change to a new on disk structure using mysql tables this is no longer that simple. I want to update an internally used tool that used to read that list of externals to using the new structure. The Tool is written in Delphi 2007 so I would prefer some code written in Delphi. There is Version Insight for RAD Studio on

delphi read xml element

你。 提交于 2020-01-13 05:24:26
问题 I'm new to XML and we need to do GeoCoding with the new Bing Spatial Data API. I've managed to get a result back from them in xml format. How would I read specific elements in the response, ie. the Link, Status and ErrorMessages? <?xml version="1.0" encoding="utf-8"?> <Response xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/search/local/ws/rest/v1"> <Copyright>Copyright © 2011 Microsoft and its suppliers.

Looking for a PDF file parser [closed]

我是研究僧i 提交于 2020-01-13 04:13:25
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . Does anyone know of a PDF file parser that I could use to pull out sections of text from the plaintext pdf file? Specifially I want a way to be able to reliably pull out the section of text specific to annotations? Delphi, C# RegEx I dont mind. 回答1: The PDF File Parser article on xactpro seems to be exactly what

Saving and Loading Treeview using XML

筅森魡賤 提交于 2020-01-13 04:11:40
问题 Note Sorry in advance for the long post, I though it would be best to put as much information on as possible rather than fill the gaps when needed. Note although I have tagged this as Delphi as well and do own and still use Delphi XE I am now using Lazarus as my primary IDE, I simply cannot afford to purchase the newer Delphi versions and now Lazarus is becoming more stable it makes sense to me to make the switch to Lazarus. For this question I have included a zip attachment with project

Saving and Loading Treeview using XML

女生的网名这么多〃 提交于 2020-01-13 04:11:08
问题 Note Sorry in advance for the long post, I though it would be best to put as much information on as possible rather than fill the gaps when needed. Note although I have tagged this as Delphi as well and do own and still use Delphi XE I am now using Lazarus as my primary IDE, I simply cannot afford to purchase the newer Delphi versions and now Lazarus is becoming more stable it makes sense to me to make the switch to Lazarus. For this question I have included a zip attachment with project

Lockbox digital signature component problem

徘徊边缘 提交于 2020-01-13 03:20:10
问题 I'm evaluating TurboPower LockBox library for digital signing. I've created a 1024 bit RSA key and tried to sign a 260 bytes of text with it. After changing one or two characters in the text the signature is still valid for it. Is that ok? Or maybe it's a problem with this library. Changing even one character has a crucial effect. Do I need to create a larger key? UPDATE To test the library I used the demo application that comes with it. I have generated a 1024 RSA key pair and then tried the

Trunc() function

为君一笑 提交于 2020-01-13 02:10:28
问题 look the follow code, why the result of Trunc function is different? procedure TForm1.Button1Click(Sender: TObject); var D: Double; E: Extended; I: Int64; begin D := Frac(101 / 100) * 100; E := Frac(101 / 100) * 100; I := Trunc(D); ShowMessage('Trunc(Double): ' + IntToStr(I)); // Trunc(Double): 1 I := Trunc(E); ShowMessage('Trunc(Extended): ' + IntToStr(I)); // Trunc(Extended): 0 end; 回答1: Formatting functions don't always display the actual numbers ( data ). Real numbers and precision can be

delphi获取exe文件是否在运行,查看某个程序在进程中是否已经存在

笑着哭i 提交于 2020-01-12 23:37:12
delphi中如何查看某个程序在进程中是否已经存在 uses TLHelp32 注意 function FindProcess (AFileName: string): boolean; var hSnapshot: THandle; //用于获得进程列表 lppe: TProcessEntry32; //用于查找进程 Found: Boolean; //用于判断进程遍历是否完成 begin Result :=False; hSnapshot := CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0); //获得系统进程列表 lppe.dwSize := SizeOf(TProcessEntry32); //在调用Process32First API之前,需要初始化lppe记录的大小 Found := Process32First(hSnapshot, lppe); //将进程列表的第一个进程信息读入ppe记录中 while Found do begin if ((UpperCase(ExtractFileName(lppe.szExeFile))=UpperCase(AFileName)) or (UpperCase(lppe.szExeFile )=UpperCase(AFileName))) then begin Result :