delphi-2007

Delphi MSBuild Build Configurations From Command Line

谁都会走 提交于 2019-11-27 18:00:25
Delphi 2009 uses build configurations . When you create a new project you have two default build configurations "Debug" and "Release". Now I asked myself how to automate builds using MSBuild (which is supported by Delphi since version 2007). You can start the "msbuild" command in the "RAD Studio Command Prompt" in some Delphi project directory and it will build the default build configuration (the last activated build configuration inside the Delphi IDE). Now, I want to specify a certain (non-default) build configuration by a command line parameter. The Delphi help asserts that the parameter

Displaying splash screen in Delphi when main thread is busy

跟風遠走 提交于 2019-11-27 16:12:39
问题 I'd like to display splash screen while the application is loading. However some 3rd party components block main thread during initilization for several seconds, which causes all forms not to update. Is it possible to have splash screen with own thread so it would update also when main thread is busy? The application is win32 and Delphi version 2007. Edit: I'm trying to avoid "undrawn splash screen" effect, which happens if some other windows (from other applications) are on the top of splash

How to find the unique serial number of a flash device?

安稳与你 提交于 2019-11-27 15:22:51
问题 I've found several snippets and .pas files that can detect when USB flash drives are inserted and removed. Some give all kind of good information, however what I need is the devices' unique serial number, not the volumes' serial number. My current .pas file (which I don't remember where I found) also seems to detect SD cards (which I like). If you want a look, you can find it here (it only returns the drive number and inserted/removed): unit UsbDetector; interface uses Classes; type

Delphi 2007 x Windows 10 - Error on opening project

不想你离开。 提交于 2019-11-27 12:17:45
问题 Just updated from Windows 8.1 to Windows 10 and now when I try to open any project on Delphi 2007, I get his error : Unable to load project xxxxx The imported project "c:\Windows\Microsft.NET...\Borland.Delphi.Targets" was not found. Confirm that the path declaration is correct, and that file exists on disk Any hints to fix it ? 回答1: You need to copy some files in your old Windows folder to the new one. After that projects open again. The needed files are these : c:\windows\Microsoft.NET

How to avoid issues when embedding a TForm in another TForm?

99封情书 提交于 2019-11-27 08:58:09
I often embed a TForm descendant into another TForm descendant like this: var Form1: TForm1; Form2: TForm2; begin Form2.Parent := Form1; Form2.BorderStyle := bsNone; Form2.Align := alClient; Form2.Show; end; Usually this works just fine, but sometimes the controls in Form2 are not aligned properly. Is there a general workaround for this sort of problem? Does anybody know what is causing this "misalignment"? I know that I could use TFrame for this kind of job, but I have a lot of library code that I would have to rewrite and I do not see any reason why the TForm in TForm approach should not

Inter-process communication

孤者浪人 提交于 2019-11-27 07:40:56
I have two applications: X and Y. X is the main application and it handles a lot of XML files. It has a history of more than 10 years and half a dozen techniques have been used to store, process and handle these XML files. Y is a debugging tool that I am developing, which can process and display XML files in a more human-readable form. Basically, it just has a collection of stylesheets that will detect the XML format and if it recognizes the format, it will transform the XML to HTML which is displayed in a TWebBrowser component. Problem: When Y is active, I want X to send any XML it proceses

Error While Linking Multiple C Object files in Delphi 2007

自古美人都是妖i 提交于 2019-11-27 05:50:59
问题 I am new to delphi. I was trying to add C Object files in my Delphi project and link them directly since Delphi Supports C Object Linking. I got it working when i link a single Object file. But when i try to link multiple object files, i am getting error 'Unsatisfied forward or external declaration'. I have tried this in Delphi 2007 as well as XE.So what am i doing wrong here? Working Code: function a_function():Integer;cdecl; implementation {$Link 'a.obj'} function a_function():Integer;cdecl

What is the best way to make a Delphi Application completely full screen?

旧街凉风 提交于 2019-11-27 05:20:01
问题 What is the best way to make a delphi application (delphi 2007 for win32 here) go completely full screen, removing the application border and covering windows task bar ? I am looking for something similar to what IE does when you hit F11. I wish this to be a run time option for the user not a design time decision by my good self. As Mentioned in the accepted answer BorderStyle := bsNone; was part of the way to do it. Strangely I kept getting a E2010 Incompatible types: 'TFormBorderStyle' and

Create a C# DLL That Can Be Imported in a Delphi App Using stdcall - Possible?

纵饮孤独 提交于 2019-11-27 02:48:35
问题 I have a program that I need to create a DLL for, hopefully in C#. The program is written in Delphi and I have an interface file to code to. The interface uses the stdcall calling convention. Is it possible to create a C# DLL that conforms to the interface and can be used in the Delphi application? Is there some sample code that demonstrates how to code the C# DLL to a stdcall interface method? 回答1: This is not possible in pure C#, but this is an article that shows how to add an unmanaged

Why does CreateProcess give error 193 (%1 is not a valid Win32 app)

时光总嘲笑我的痴心妄想 提交于 2019-11-26 23:13:52
The code below fails to start documents. I get error 193 (%1 is not a valid Win32 app). Starting executables work fine. The files are properly associated, they start the corresponding app when double clicked. I have searched SO and elsewhere for the error message, createprocess stuff etc. (E.g. Why is CreateProcess failing in Windows Server 2003 64-bit? I know about quoting the command line. This is a Delphi XE2 (Update 4) Win32 app in a Win7 64bit VMWare VM. The code also fails on the host machine (Win7 64 bit) and in a Virtual PC VM with 32bit XP. The apps that should start in the Win7 VM