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 WinXP). But I've realised some of these settings are unique to the machine not the user and thus want (actually need) to save them in a single locatio...
I want to "view" information displayed by another application and "click" different buttons to automate a process. Have never done this before and would appreciate any advice on where to start and/or links.
...
Is there any way to know the name of a method I'm currently in?
So that:
procedure TMyObject.SomeMethod();
begin
Writeln('my name is: ' + <hocus pocus>);
end;
would produce this output:
my name is: SomeMethod
...
I am having trouble with the delimiter in the TStringList Class. Take a look:
var
s: string;
sl: TStringList;
begin
sl := TStringList.Create;
s := 'Users^foo bar^bar foo^foobar^barfoo';
sl.Delimiter := '^';
sl.DelimitedText := s;
ShowMessage(sl[1]);
end;
sl[1] SHOULD return 'foo bar'
sl[1] DOES return 'foo'
It seems t...
When trying to run Delphi 7, I get this frightening message:
Borland license information was found, but it is not valid for Delphi. You cannot run Delphi without this information. Click the exit button to exit Delphi.
Delphi was running fine this morning, then choked when I tried to load the project on which I'm currently working. I rei...
I tried the following code but it does not retrieve text from foreground window!
procedure TForm1.Button1Click(Sender: TObject);
var
title : pansichar;
s : string;
begin
GetWindowText(GetForegroundWindow(), title,GetWindowTextLength(GetForegroundWindow()) + 1);
s := title;
showmessage(s);
end;
...
has anyone managed to get a DBLookupComboBox to work with a DBCtrlGrid?
a pre filled in DBComboBox works ok, but it dose not work to well for lookup tables;
delphi 7
...
Hello,
I am loading text from text file to richedit but it displays weird Chinese symbols instead, what am I doing wrong?
ms := TMemoryStream.Create;
ms.LoadFromFile('C:\aw.txt');
ms.Seek(0, soFromEnd);
zChar:=#0;
ms.Write(zChar, 1);
ms.Seek(0, soFromBeginning);
RichEdit1.SetSelTextBuf(ms.Memory);
ms.free;
...
Hello,
I'm developing an activexform with delphi 7 using the indy client (v.9) to connect to pop3 over ssl. Unfortunately when I load the activex in the web browser it tells me that it can't find the SSL library (ssleay32, libeay32).
Does anybody know how can I work around this?
(or Does anybody know any other method to connect to pop3...
I have a chat program, written in Delphi 7, that I would like to replace long url's posted, with a smaller tinyurl as displayed. I've Googled but haven't found anything helpful quite yet.
Thanks in Advance
Mark
...
How can I get all installed components in TStrings?
I think this code work only in packages:
uses TypInfo, ToolIntf, Exptintf;
procedure GetComponentNames(lst: TStrings);
var
i, k: Integer;
CRef: TClass;
strName: ShortString;
begin
lst.Clear;
for i := 0 to ToolServices.GetModuleCount-1 do
begin
for k := 0 to ToolSer...
I want to start a program using Delphi code, and "command" it to perform an action, in this case a button click.
I know you can start a program using the command line, but I would need the right paramaters for the button click. How or where can I find it?
...
are ther any integrate parser mathematical expertion component in delphi?
...
Hi
I am using an COM in Delphi 7 that was created in C# and one of the methods of a class return an array of an type. However, when Delphi imports it, instead of an array of that type I get an PSafeArray.
How can I cast the items of that array into its base type?
I've tried to use SafeArrayGetElement but I couldn't find a way of casti...
My application is based on modal forms. Main form opens one form with ShowModal, this form opens another with ShowModal, so we have stacked modal forms. There is sometimes a problem that when we call ShowModal in new form, it hides behind previous forms, instead of showing on top. After pressing alt+tab, form comes back to the top, but t...
In Delphi 7, I have a library that uses the TCanvas component to output some information. The resulting image is about 4800*6000 pixels and I would like to print it and save it as .jpeg.
To achieve this, I created a TBitmap and gave its Canvas as parameter to the library and then I assigned the bitmap to the jpeg. Apparently, this is ta...
I'm a .NET developer, but I have got quest - must find errors in Delphi project.
After opening a project (Borland Delphi 7) and trying to debug it ('Run' menu), I've noticed all debugging options are inactive (gray).
How can I make it usable?
...
Is there a way to get Object data from its class procedure or function without instantiate it?
...
Hi Folks:
I am trying to make an AlarmSystem in Delphi 7, Windows XP. I have to register alarms in a Database (MS SQL Server 2000). But what if the server is down??? Well, I can imagine that I have to persist objects of TAlarm type. So, how can I do this? Maybe inheriting from TComponent??? Please, how can I do this??
Thanks a lot.
I a...
I have an application that uses Rave Reports on Delphi 7. I want the reports to have its default display in landscape. How am I going to do it?
Any suggestions would be very much appreciated.
...