Hi,
I am trying to create a runtime package which will contain classes that my main application can use, but I'm having problems with the data access.
My main app contains a TDatabase which points to a BDE alias. At runtime my package is dynamically loaded, and a method invoked in the package...
Hi,
I'm trying to use an sql insert statement using ADO parameters, and I can't get the value of the parameter into the db, and it's driving me nuts! I'm using SQL Server 2000, Delphi 4 and ADO 2.1 (there's nothing like modern technology is there?!)
The code is simply this:
procedure...
Hello all,
I'm looking into a problem with message handling within an application. When the app is started a thread is created, and within this thread is a message handler which is assigned to Application.OnMessage. The message handler will only handle custom messages (between WM_USER+6 and...
Hi, I'll try and keep the description of my problem short.
I have a program with two TStringGrids, one a parent and one a child, both of which allow editing.
I have written some functionality in the program which allows you to copy and paste parent items, which is assigned to TAction.OnExecute...
Hi,
I'm using Delphi 4 (not through choice!) and Windows XP, and I'm getting some odd behaviour when calling the Windows API function GetWindowsEx.
If I run in debug mode (i.e. from Delphi) this incorrectly returns MajorVersion = 4, MinorVersion = 0 (which is Windows NT). If I run the...
Hello,
does anybody know if there are any components out there that will let me programatically convert quick report files (i.e. qrp files) to pdf format? I want to convert an existing qrp file rather than use a pdf filter to save the report as a pdf file in the first place.
The qusoft...
Hi,
In a post recently somebody mentioned that they were using the 'free version' of Delphi. I didn't take much notice at the time, but now I like the idea of getting hold of a free copy of Delphi.
Does anybody know if it is possible to (legally) get a free version of Delphi (excluding Kylix)...
Hello,
I want to embed a TButton in a cell of a TStringGrid, which I have done okay. However, I have found that if I set the stringgrid as the button's parent, then the button's OnClick event handler does not get called when I click on the button with the mouse (although it does if I hit the...
Hello,
As part of my program I want to remove a directory from the hard drive that has some files in it. The Delphi function RemoveDir will not work because it will only remove the directory if it is empty.
I could iterate through all files in the directory and delete them one by one and then...
Hi,
I'm writing a little program to change the desktop wallpaper on a Win 2000 machine. I am changing the registry settings for stretch, tile and centre okay and I'm using SystemParametersInfo to set the wallpaper okay using the following line
SystemParametersInfo(SPI_SETDESKWALLPAPER, 0...
Hi everybody,
I want to step through a dll but Delphi is not stopping at my breakpoints. Some times my breakpoints in dlls work and sometimes they don't, and it's beginning to drive me bonkers!
In the compiler options I have Debug Information, Local Symbols, Reference Info and Definitions Only...
Hello all,
Can anybody explain to me the difference between the two methods of type casting? For example:
(Sender as TButton).Caption := 'Button1'
or
TButton(Sender).Caption := 'Button1'
I know that there must be a difference because sometimes Delphi does not like the second way of type...
Hi,
I have an Interbase 6 database with around 200 tables, some of which have an associated audit table named AUDIT_tablename (e.g. AGENT and AUDIT_AGENT). I am trying to find all tables in the database which do not already have an audit table, and I'm finding it a bit tricky. As far as I...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.