You need to set the eoAsyncExecute option in the Query component before execution.
To cancel the query, just call the Cancel method of the Query component.
--
Robert
If you have access to the form class definitions (via uses) then you can do it this way:
procedure TMyMainForm.LaunchForm(FormClass:TFormClass);
begin
with FormClass.Create(self) do
Show;
end;
procedure TMyMainForm.ShowForms;
begin
LaunchForm(TForm1);
LaunchForm(TForm2)...
When we decided to move our Exchange 5.5 from one NT4 box to another at work, I read through lots of info from Microsoft, and after some irritating errors (and mistakes) I finally decided to take the "quick and dirty" way.
Since there were only 11 mailboxes on the old server, I...
What version of Windows and network protocol are you running on the client?
What happens if you ping the server after you unplug the cable (without your application running)? --
Robert
You could use the EnumWindows() API function and check the title of each top level window.
Remember that the caption of IE also contains the title of the current web page, so you might want to check for the class name instead (Use a tool like WinSight to get this).
A more flexible approach...
I have this problem too, and when I examine the event log on the server, it has an entry witch refers to some invalid message in the BAD folder.
Sometimes it helps to shutdown all exchange services, delete the bad message (file name is in the event log), run a defrag, and restart the services...
Open the properties for the "Internet Mail Service", select the "Routing" tab, and then the "Routing Restrictions" button.
Check the "Hosts and clients that successfully authenticate" checkbox.
Also, if your boss (or other employees) connects through some...
This is just out off my head, but it should work.
(It needs some exception handling and error checking though)
The reason I included the ID field in the select statement is that ADO sometime fails if you select a memo/blob field all by itself.
procedure ReadBlob;
type
TBuf = array[0..0] of...
Since the users are logging on using NT authentication, why not just fetch their Windows username.
Example:
var
sUserName : Pchar;
iLen : Cardinal;
begin
Getmem(sUserName,30);
iLen := 30;
GetUserName(Pchar(sUserName),iLen);
Result := sUserName;
FreeMem(sUserName);
end;
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.