delphi

Delphi 2010: integrated code formatter disappeared from menu

Hello. How to get back integrated source code formatting back to Delphi? I suppose I disabled some package or something and there is no more an option in Edit menu to format source. What package should I get back installed to have it on again? ...

Minimum set of Delphi 2010 files to move to a SVN repository for compiling

We are using Subversion for SCC. We have a great deal of our build environment in our repository so that we can check a given version out and rebuild it fairly close to what was in use at that time. We have the following in there now: InnoSetup binaries Third Party Components VCL (including Indy) Our Source (of course) Finalbuilder pr...

Experience with direct data access components

I would like to know as to what has been the experience of using direct data access components like devart's MyDAC which allows a direct connection to the mysql server rather than through the client library or ODBC. ...

How do you free windows handle pointer in Delphi 7?

I am using a third party tool that is pointing to images in memory with a windows handle. The tool stats that you are responsible for freeing handle. So how would you free that handle in Delphi 7? The datatype for the handle is LONG ...

Detecting a stale Mutex

Is there any technique or tool available to detect this kind of a deadlock during runtime? picture this in a worker thread (one of several, normally 4-6) try WaitForSingleObject(myMutex); DoSTuffThatMightCauseAnException; except ReleaseMutex(myMutex); end; or more generally is there a design-pattern to avoid these kind of bu...

How to get the Handle that is executed in winexec or shellexecute?

i use to create a custom function like winexec(...):Hwnd that will retun the handle of executed application. i did use the findwindow() but having problem if it change window caption. ...

how to replace Windows.Beep with modern beep sound

how to replace Windows.Beep with modern beep sound that comes from speakers with adjustable volume? ...

Using ZLib unit to compress files vs using ZipForge

There are many questions on zipping in Delphi, anyway this is not a duplicate. I am using ZipForge for zip/unzip capability in my application. Currently I use 2 features of ZipForge: 1) zip and unzip (!) 2) password protect the archives Now I am removing the password from all the archives so I need only to zip and unzip files. I zip...

Delphi Binary/Text File Necessity

I am an engineer and not a software programmer, so please excuse my ignorance. I have written a Delphi(7SE) program to read “real” datatype from a USB port connected to two digital thermometers. I have completed this much of the program. What I have not completed as yet is explained by the following: I wish to save this “real” data t...

Loading a Win32 control in C# (specifically WPF)

I have written a set of Win32 dlls that encapsulate a Delphi Frame (see Snippet 1 below), and can load them into another Delphi program by loading the dll and assigning the right variables (Snippet 2). I now want to be able to do the same thing in C# (I can load the DLL in pinvoke, but am unsure how to connect up the control to the basic...

delphi vs c# post returns different strings - utf problem?

I'm posting two forms - one in c# and one in delphi. But the result string seems to be different: c# returns: ¤@@1@@@@1@@@@1@@xśm˱Â0Đ... delphi returns: #$1E'@@1@@@@1@@@@1@@x'#$009C... and sice both are compressed streams I'm getting errors while trying to decompress it... The C# is 'correct' - ie. extracts. I'm not an expert on delp...

Problems in Showmodal after assigning to Setparent(..).

I created two application MainApps and SubApps, the SubApps has a modal type dialogbox such as login/logout form etc. and its working fine. After I attach it to the MainApps, the Modal Dialog box shows like normal box form. It behaves like "DIALOG.SHOW" instead of "DIALOG.SHOWMODAL"; I am using delphi compiler SubApps buttonclick; ...

interesting Delphi open-source applications/projects (not components/component packs!)

Hi, I'd like to know what interesting open-source projects written in Delphi (or FreePascal) you know? I'm not asking for components/components packs, I know there were questions for that. Please do not duplicate answers, vote them up instead ;) Please do not point components/packs/closed-source projects. Please provide at least word of...

A Delphi Custom Control: A TRichEdit with a TLabel Above It

Hello, I want to create an custom control (descendant of TRichEdit). I simply want add some text above the editfield. I've created my own control and I override the constructor to create a TLabel for the caption. It works, but my problem: How is it possible to move the label above the richedit? When I set Top := -5 the label begins to d...

ShellExecute not working from IDE but works otherwise.

I want to create and then open a txt file using the ShellExecute command. I have used this code for years with Delphi 7 and it worked: function Executa(CONST ExeName, Parameters: string): Boolean; begin if Parameters= '' then Result:= ShellExecute(0, 'open', PChar(ExeName), NIL , nil, SW_SHOWNORMAL)> 32 else Result:= Sh...

DES_KEY_SZ delphi

hey folks i am coding opera recovery tool in my delphi i am using c++ which is already exist http://pastebin.com/ViPf0yn6 but i didnt get whats DES_KEY_SZ in that code . i think they are present in des.h ,but i couldnt found same des.pas :( can any one help me please regards ...

needs run as administrator in vista and seven

I have a windows application,sometimes in windows 7(also ultimate with administrator user) and vista to run it i need to right click and run it as administrator,I know the reason is attempt to access to system directories from my program,how i can solve this problem,is net user administrator /active:yes that using for enabling the real ...

How Do I Programmatically Set a File Tag

When using Windows Explorer to view files, I'm given the option to set a "tag", "category", or other attributes. For a JPEG a different set of attributes (including "tag") are options. I'd like to be able to set these programmatically. How do I programmatically set a file tag and other file attributes using Delphi (I have Delphi 2010 ...

How to simulate a dial-up connection for testing purposes?

I have to code a server app where clients open a TCP/IP socket, send some data and close the connection. The data packets are small < 100 bytes, however there is talk of having them batch their transactions and send multiple packets. How can I best simulate a dial-up ut connection (using Delphi & Indy components, just FYI)? Is it as s...

Delphi 2010 and Firebird - what DLL need to be included to deploy

Assuming the Firebird client is installed what additional files need to be included with a Delphi 2010 application that uses dbExpress to access the Firebird database. I assume dbxfb.dll (midas is included in the project 'uses') is required. Any others? ...