delphi-5 Questions
1
Solved
I have a TTreeView in Delphi, with nodes at three levels.
I use node data to store another label besides the node text.
Type
TNodeData = class
ExtraNodeLabel: WideString;
//... other members
...
Quintuplet asked 5/7, 2013 at 12:14
2
Solved
I have just seen a bit of code (D5) where they used...
aStr:=tblAcct.FieldByName('Name').Text;
It seems to work fine but I have always used...
aStr:=tblAcct.FieldByName('Name').AsString;
I ha...
2
Solved
i am hosting Internet Explorer in a Windows application. i can scroll down to the bottom of the document. When i then try to scroll back up i get a division by zero exception:
When i scroll usin...
Gallion asked 27/2, 2012 at 21:5
1
Solved
How do i get the EXCEPTION_POINTERS, i.e. both:
PEXCEPTION_RECORD and
PCONTEXT
data during an EExternal exception?
Background
When Windows throws an exception, it passes a PEXCEPTION_POINTER...
2
Solved
Where and when is the Application instance created?
(Same goes for the Screen instance) .
I don't see anything in the Forms or System initialization section.
In the CPU windows before Applicatio...
Rab asked 7/2, 2013 at 17:32
1
Solved
This is related to the question How to show a check box in TListView header column?.
I want to use the code from this answer by @Sertac Akyuz. (I need this to work in WinXP also)
But I want to ma...
3
Solved
A blog entry from Raymond Chen today made me realize the elegant solution to a problem i'm having.
Various shell functions, rather than all taking ITEMIDLIST structure, can be made to only accep...
1
Solved
I am looking for an implementation of TFlowPanel (or similar) that will work with D5.
Basically I need the TFlowPanel to work inside a TScrollBox (with Vertical scroll bar), so the controls will w...
3
Solved
Hello I am building my delphi project using the following command:
Command: dcc32.exe project.dpr d:\exe_folder
The above command works good and I am able to cerate the exe in output folder. But...
1
i want to render a web-page (i.e. TWebBrowser) to a device context. i want to use Internet Explorer's layout engine to render content to a device context (i.e. metafile, pdf metafile).
Starting ...
Cockcroft asked 4/6, 2012 at 15:42
4
Solved
Does Delphi assign an instance variable before the object is fully constructed?
In other words, given a variable:
var
customer: TCustomer = nil;
we then construct a customer and assign it to...
Christenechristening asked 29/5, 2012 at 19:53
4
Solved
i am fetching some XML from a government web-site:
http://www.bankofcanada.ca/stats/assets/rates_rss/noon/en_all.xml
i am using the following, fairly simple code:
var
szUrl: string;
http: IXMLHT...
Stutman asked 30/3, 2012 at 15:10
3
Solved
My Question is similar to the idea here: Replacing a component class in delphi.
But I need to change a specific component(s) class on demand.
Here is some pseudo demo code:
unit Unit1;
TForm1 = c...
2
Solved
Has anyone successfully used WebKit in Delphi?
WebKit is an open source web browser engine. WebKit is also the name of the Mac OS X system framework version of the engine that's used by Safari,...
2
Solved
I have added these two methods to the 1st unit of my Delphi 5 application.
function Inp(PortAddress: Integer): Integer; stdcall; external 'inpout32.dll' name 'Inp32';
procedure Output(PortAddress...
5
Solved
In Delphi 5, I've currently written code that calls Free on multiple variables in a finally block, e.g.
...
finally
a.Free;
b.Free;
c.Free;
end;
This code assumes that Free can never raise, s...
3
Solved
i am trying to call EnumSystemLocales in Delphi. For example:
{ Called for each supported locale. }
function LocalesCallback(Name: PChar): BOOL; stdcall;
begin
OutputDebugString(Name);
Result :=...
Despain asked 23/12, 2011 at 15:13
2
Solved
Here is my code:
type
TForm1 = class(TForm)
WebBrowser1: TWebBrowser;
Button1: TButton;
Button2: TButton;
procedure Button1Click(Sender: TObject);
procedure Button2Click(Sender: TObject);
e...
Embarrassment asked 20/11, 2011 at 9:22
3
Solved
My app is written in Delphi5. I am using madExcept to track down bugs. I tracked down a "Floating point dvision by zero" exception, where it shouldn't be. The code segment, where it is raised, goes...
Shelly asked 8/11, 2011 at 8:10
1
Solved
I'm using FastMM 4.97 in my application in Delphi5.
Everything works well, if I run my application from the IDE with an intentional leak for test purposes. I get proper notices and error logs.
Ho...
Imprecision asked 8/9, 2011 at 7:48
2
Solved
In Delphi1, using FloatToStrF or CurrToStrF will automatically use the DecimalSeparator character to represent a decimal mark. Unfortunately DecimalSeparator is declared in SysUtils as Char1,2:
va...
Firry asked 15/8, 2011 at 18:46
3
Solved
i am trying to construct a (test) WideString of:
á (U+00E1 Small Letter Latin A with acute)
but using it's decomposed form:
LATIN SMALL LETTER A (U+0061) COMBINING ACUTE ACCENT (U+0301)
S...
Canthus asked 11/8, 2011 at 16:12
4
Solved
Might it is very simple question but I never touched delphi.
I have a edit box and that can accept character. But on some special condition I have to verify the edit box character are only numbers....
6
Solved
i've been trying to get some modeless forms in my application to appear on the taskbar - taking advantage of the new useful taskbar in Windows 7.
There's are many issues with the VCL that need to ...
3
I have taken over support for some applications written in Delphi. I have programming experience, but none in Delphi, and very little in OOP. In the opinion of experienced Delphi programmers,...
© 2022 - 2024 — McMap. All rights reserved.