I have some code that does some setup of internal objects in the Loaded() function. However, some external objects are not completely created yet, but are AFTER the Loaded() function is complete. What function does Delphi call after it calls Loaded()?
Better yet what is the creation sequence of a component?
Basically I have a TCP Ser...
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...
I created a TSkinPanel derive from TcustomControl
it has a FGraphic: TPicture.
the FGraphic is drawn on the canvas of the TSkinPanel and works fine if you load and image from the TObject Inspector.
but i doesnt won'k work on loading image on runtime "Form1.SkinPanel1.Picture.LoadFromFile('skin.bmp');
...
I'm was trying to write a dll library in Delphi wih a function that creates an instance of a TFrame descendant and returns it. But when I imported this function in an application, every time I called it I would get an exception like "the 'xxx' control has no parent window". I'm not 100% sure, but the exception appeared in the constructor...
Could someone provide me an example of utilizing SECURITY_DESCRIPTOR in InitializeObjectAttributes()? I plan to use them with NtCreateKey(). I couldn't find any example on the Internet.
Thanks in advance.
...
My friends have to build a program whitch contain some forms ...they have to choose between VC++ and Delphi but many people said that VC++ is not a good place to build Winforms applications so is this true ?
My friend are beginners and they only Know few things in C++ and Delphi so what is the best choice ?
Edit : this is a university...
In delphi i manage hyperlink but i can not link any form of my project, how to link any form of project this is delphi. pls help me anyone
...
Hi,
In Windows Explorer, you right click on a file, a context menu shows up which contains built-in items like 'Send to...' and/or 3rd party actions such as 'zip file with Winzip'. My question are:
How to obtain the full list of available menu items for a specific file?
For each menu item, how to get the caption?
How to invoke a speci...
Hi.
I have this piece of code that works with all images in the world (I have tried thousands - for real) except one JPG.
When I try to load that image (it opens in IrfanView without problems) I get an access violation.
aBitmap.Assign(aGraphic.Graphic)
Any ideas?
Using: Delphi 7, Win 7 32bit
...
When I create recursive methods, I often include a Depth-parameter, especially when I need some sort of bailout mechanism. The code will usually be something like this
procedure Recurse(<Params>; aDepth : integer = 0);
begin
if aDepth > SomeLimit then
begin
//Tidy up, return best result found>
exit;
end;
<stuff>
if <...
hi,
got a strange problem: I create a TPanele at runtime and change its color - however, the color is still clBtnFace.
Here' the code:
procedure TForm1.Button1Click(Sender: TObject);
var
pnlTest : TPanel;
begin
pnlTest := TPanel.Create(Form1);
pnlTest.Parent := Form1;
pnlTest.Width := 100;
pnlTest.Height := 100;
...
Hi,
How can convert emf to bmp with delphi 2010?
...
I am testing one application that handles files (stored in sql server using filestream). It is a Delphi win32 application.
Opening a xls document stored in the db (originally saved with Office 2003) gives an error from Excel 2010 64bit.
Is there some known compatibility issues with Office 2010 64bit with win32 applications?
i am tryi...
Possible Duplicate:
FxCop / StyleCop for Delphi?
Hi !
Has anyone encountered with some coding style tool like StyleCop, but for Delphi 2010 ?
I would appreciate if someone recommends any free tool.
...
I've run across this "Incompatible types" error in the comment below a few times, and never been happy with why this isn't directly supported in Delphi 2007:
program Project1; {$APPTYPE CONSOLE}
type TCharArray = array of Char;
procedure DoArray(Chars: array of Char);
begin
end;
function ReturnTCharArray: TCharArray;
var CharArray: T...
In my Delphi 6 Pro program I'm able to change the cursor on a TWebBrowser component successfully using the code below, but only when it does not contain a valid web document:
const
theCursorID: integer = 1;
Screen.Cursors[theCursorID] := LoadCursorFromFile(PChar(theAniCursorFilename));
theWebBrowser.Cursor := theCursorID;
As soon...
What is the Delphi equivalent of
unsigned char** '
in C
i'm not sure if its a pointer to an array or a pointer to a pointer or if the two things are the same in C.
...
I just want a quick and dirty non-modal, non-closable screen that pops up and goes away to make 2 seconds seem more like... 1 second. Using 3-5 lines of code.
Is this too much to ask?
...
I was looking at http://stackoverflow.com/q/3780235/71200 and started experimenting. What I discovered is rather interesting.
procedure Clear(AArray: array of Integer);
var
I: Integer;
begin
for I := Low(AArray) to High(AArray) do
AArray[I] := 0;
end;
var
MyArray: array of Integer;
begin
Clear(MyArray);
end.
This simple l...
I´m using Delphi 5 with SQL Server 2000 here.
I have created an ADOQuery on top of an updatable view with an INSTEAD OF DELETE trigger.
The updatable view is basically used for controlling soft deletes. It filters out records which are marked as deleted and it hides the controlling column as well.
It all works fine when I´m issuing di...