delphi-7

How do I run Delphi 7 on Windows 7 without disabling UAC?

I had the bad idea of switching to Windows 7 (32 bit) and now my old Delphi 7 won't work properly. Actually it worked just fine until yesterday but (I suppose) after some MS Windows updates, it crashes if I double click a DPR file. However, it works if I run as administrator or if I start Delphi IDE without double clicking a DPR file (an...

Tracking changes in a directory programmacticaly

I have to write a litle app that will process files saved in a given dir. I doesn´t pleases me the idea of writing infinite loops, timers and that kind of stuff. I´d like to know if there if (I would bet a finger that there is!) there is any windows API that would send my app a message for any file saved in that given dir. ...

How can I sort a TList in Delphi on an arbitrary property of the objects it contains?

I have a TList. It contains a collection of objects of the same type. These objects are descended from a TPersistent, and have about 50 different published properties. In my application, the user can issue a search of these objects, and the results of the search are displayed in a TDrawGrid, with the specific columns displayed being...

How to remove duplicate resources (RES, DFM) while using Delphi with non specific Library paths?

I followed the advice received in a previous discussion ( http://stackoverflow.com/questions/3666292/should-library-path-point-to-the-source-files-of-packages/3686542#3686542 ) and now my Library Path points to folders containing the compiled code (DCU) and NOT to the source code of my controls. The problem is that I have to duplicate th...

Runtime error 216

Hi, I have a system that recently do not run delphi program and shows runtime error 216. What's the problem and how can I fix it? Please help me. Thank you ...

Form Designer Save and Load

i made a simple form designer in delphi, drag and drop a button on the form and it draws it, but the thing is i cant save/load this project since i dunno how to, is there anyway that i could be abel to save it to .rc file and load it from there? ...

StrToFloat raise error in my Application not in any application

My application written month ago in Delphi 7. Now I want to convert a float str value (like 12.5) to extended, but delphi raise an error. Debugger Exception Notification Project Educatee.exe raised exception class EConvertError with message ''12.5' is not a valid floating point value'. Process stopped. Use Step or Run to continue. Sam...

Delphi COM EXE and Threading

Just want to confirm with the COM/DCOM experts out there... I have a Delphi COM EXE that is running on a server (threading is Single Apartment) and another copy of that same EXE starts up on the same server (a server that has say 2 processors with dual core so the task manager shows 4 separate graphs) will they take turns waiting for e...

Delphi, List Index out of bounds

I have a TListBox on a form, and items are added with listbox1.ItemIndex := listbox1.Items.AddObject('msg', TObject(grp)); grp is an integer, The listbox is set to lbOwnerDrawFixed In the onDrawItem event i get the Exception EStringListError raise on the marked line msg := (control as Tlistbox).Items.Strings[index]; <-- this line ...

TWebBrowser and IE version

When I asked this question I accepted the answere because it made sense and the documentation pointed was right. Testing a machine with IE6 against other one with IE7 with the same compiled executable using TWebBrowser the behaviour was indeed as pointed in the answere. Now I put the answere in doubt again, in a machine with IE8 that s...

Delphi7: PageControl MouseMove while drag and dropping on it

Hi I have the following problem. There's a pagecontrol on my form and I want to activate a certain tabsheet and then drag and drop (from explorer) to a scrollbox on the tabsheet. (each tabsheet has a scrollbox) I have code to activate a tab when you mousemove over the pagecontrol. (see code below) The problem is that when I drag a file...

Preferable way to write Delphi database apps with transactions & data-aware components

Hi, What is the preferable way to write Delphi database applications using transactions and also data-aware components? I have to write a client app that access InnoDB tables, and do some master-detail kind of things inside transactions. After doing some research on transactions (from general point-of-view), then I humbly make a conclu...

Using Delphi7 TClientDataSet: is it possible to have it save it's XML contents in an indented format

I am using Delphi7 ClientDataSet to read and write xml files for some of my data. Howerver, when I want to browse this outside the program (double clicking the xml in Windows Explorer) I get the 'An invalid character was found in text content. Error processing resource' - even although the data reads and writes fine from within Delphi. ...

Threads managing problem!

I wrote a program that uses OLE and it was working fine until I added some components which were important for my program, after that my program have problem when starts to work with OLE and raise this exception: "EOleSysError No more threads can be created in the system" is there any way to requesting more threads or free u...

How to change the date format in combo box?

i'm using TwwDbLookupComboDlg component in delphi 7. I want to change the date format in the combobox (as shown below) from '1/1/2009' to 'Jan 2009', any idea? ...

Printer Print Size

How can i set the printing size (width and height) by code without showing a dialog? Thanks ...

How to determine if all characters in a string are equal.

I need to know if all characters in a string are equal (formed by the same character). the function must return true or false depending if all the elements of the string are equal to an particular char. I wrote this function that works well, but I'm looking for a more optimal (fastest) solution, the strings can have thousands of chars...

delphi 7 - create a custom warning

hi, I'm using Delphi 7, and I want to create a custom warning message(which will be showed at compilation), so I can warn other programmers on some modifications. I've searched on the internet but i didn't found anything relevant. Other solutions, are welcomed as well, as long other programmers are warned about things I want, when the...

ADOQuery closes after contructor

in Delphi 7 , useing TADOQuery. in the contructor i do ADOQuery.open; then when another function is called from outside the form, the ADOQuery is closed why? constructor TClass1.Create(AOwner: TComponent; MyParam: TProgramParam); begin inherited; ADOQuery.Open; ADOQuery.Locate('fieldName',Param); end; ...

GPS Software for PC

hi ! I will start on a private project that will require some GPS software on my computer, so far I have been contacting Garmin and Destinator to ask if they have some sort of SDK kit for theire map services. however they could not offer me this in Norway. I am therefore asking here if anyone here know any kind of map software, capable...