delphi-7 Questions

3

Solved

I know in delphi you can open the default browser with: ShellExecute(self.WindowHandle,'open','www.website.com',nil,nil, SW_SHOWNORMAL); but I'm wanting to know if there is a way to automatical...
Compulsion asked 16/5, 2010 at 3:4

5

I'm trying to open a text file for reading in a Delphi 7 app, but am getting I/O error 32 (sharing violation) because another application already has the file open. I've tried setting FileMode to "...
Ormand asked 26/4, 2009 at 11:9

3

Solved

I need a Timer in a 'no form' Delphi unit (there's still a main unit with a form), so I do this: unit ... interface type TMyTimer = Class(TTimer) public procedure OnMyTimer(Sender: TObject); ...
Highgrade asked 14/4, 2010 at 6:9

5

Solved

Im trying to write a server/service that broadcasts a message on the lan ever second or so, Kind of like a service discovery. The message needs to be received by multiple client programs that c...
Wieren asked 9/4, 2010 at 2:50

4

Solved

I have a delphi 7 form: and my code: when I run this form in Windows 7, I see: In design time, form had polish letters in first label, but it doesn't have them in runtime. It looks ok o...
Trilateration asked 31/3, 2010 at 8:8

2

Solved

I written an asm function in Delphi 7 but it transforms my code to something else: function f(x: Cardinal): Cardinal; register; label err; asm not eax mov edx,eax shr edx, 1 and eax, edx bsf ...
Effect asked 7/3, 2010 at 9:20

1

Solved

I am using the TSaveDialog component to save a file from a button click. However, I am having trouble with saving on an existing file name. Generally, when you want to save over an existing file in...
Atingle asked 31/3, 2010 at 15:5

3

Solved

I need to show a popup window before a query execution, show the time elapsed while the sql query is being executed, and close that window when the query ends. Actually I do something like this v...
Dismuke asked 26/3, 2010 at 21:11

1

Solved

Working in Delphi7 just now, I noticed that not only a VarIsEmpty function exists, but also a VarIsEmptyParam. Since the help of Delphi does not give much explanation: VarIsEmptyParam returns t...
Pleura asked 8/3, 2010 at 13:9

4

Solved

I need to use a class instead of record for VirtualStringTree node. Should I declare it standard (but in this case - tricky) way like that: PNode = ^TNode; TNode = record obj: TMyObject; end; //...
Oilskin asked 18/2, 2010 at 12:14

9

I've created an auto-updating application which is distributed to 100s of users. The auto-update utility is being flagged by 55% of antiviruses on virustotal ( link ). My application was created ...
Vierno asked 2/2, 2010 at 15:29

1

Solved

I need a way to download a file from the Internet using Delphi via HTTP, Which include an Progress event, I'm looking for a method which uses the Indy components. I am using Delphi 7.
Masbate asked 2/2, 2010 at 13:55

3

Solved

I have a web creation program which, when building a site, creates hundreds of files. When the internet root folder is situated on the local pc, the program runs fine. If the internet root folder...
Economize asked 17/1, 2010 at 10:53

4

Solved

I have a Delphi application that communicates with web servers on the Internet using the Indy components. Most users of the application have direct Internet connections but some are behind a proxy ...
Alyce asked 6/1, 2010 at 15:4

4

Using Delphi 7, how can I get a string representing the stack-trace from an Exception? try SomethingDodgy(); except on E:Exception do begin // print stack trace Log.Write(/* ??? */); end; end...
Voice asked 16/11, 2009 at 5:33

2

Solved

What is the best way of searching XML documents using XPath in Delphi7?
Nose asked 5/2, 2009 at 18:14

5

I have lots of components installed - trouble is when I want to find one I rarely use it takes ages to find it. I can look at the ALL choice which lists all components but finding one with say 'gri...
Parameter asked 1/9, 2009 at 10:2

2

Solved

My application is currently storing settings in an INI file under the current user's profile ( C:\Documents and Settings\<CurrentUser>\Application Data\MyApplication\MySettings.ini under WinX...
Squirearchy asked 11/8, 2009 at 2:5

2

Solved

I'm writing a Delphi 7 application which needs to access the same SQL Server database from many different threads simultaneously. Can I use a single shared TADOConnection, or must each thread crea...
Honk asked 6/8, 2009 at 22:17

6

Solved

I am looking at some code (Delphi 7) with following check is at the top of every method call for a specific object: if not Assigned(self) then raise Exception.CreateRes(@sAbstractError); { Real...
Phenacetin asked 24/6, 2009 at 20:39

2

Solved

I'd like to instantiate a class but I only have its name in a string. Is there a way?
Ciliolate asked 31/3, 2009 at 13:48

7

Solved

I have the very same delphi version, bpls, components, everything. And yet in three machines the resulting executables are different in size. What else can influence in the size of the exe? In my ...
Overflow asked 11/11, 2008 at 17:22

4

Solved

I want to get the size of any "record" type in following function. But seems it doesn't work: function GetDataSize(P : Pointer) : Integer; begin Result := SizeOf(P^); // **How to write the code?*...
Euphroe asked 9/6, 2009 at 9:11

4

Solved

The characters allowed are A to Z, a to z, 0 to 9. The least amount of code or a single function would be best as the system is time critical on response to input.
Yearbook asked 22/2, 2009 at 8:55

1

Solved

On our main data entry screen, we have an OK/Cancel dialog in the OnBeforePost event. OK lets things take their course Cancel right now does a Dataset.Cancel; Which does what it's meant to, rol...
Representationalism asked 8/5, 2009 at 6:59

© 2022 - 2024 — McMap. All rights reserved.