Yes that is a good overview.
I'll throw in another option: ISAPI
A lot of these frameworks (on Windows) are just big ISAPI dlls.
I've been doing websites using the very low level ISAPI API (not Borland's
webbroker) for 15 years or so.
I have to maintain PHP and other frameworks from time to
Hi John,
You may need the DCP files as well: IndyCore, IndyProtocols, IndySystem.
Probably later versions than the '100' indicated in your error msg.
They go in:
C:\Documents and Settings\All Users\Documents\RAD Studio\5.0\Dcp (remove
the old '100' ones)
HTH,
Steve
_
From: John
Dave,
FWIW I have ver 10.2.3 here running on D2007 and also D7. Have no issues
that I know of with this ver, but I certainly had problems with previous
versions (from memory something to do with commas or periods in HTML mime
part of email).
This may be too old for what you want though.
Hi all,
I've recently taken over the development of a legacy Delphi project, and
have been struggling with some component issues.
This project in Delphi 2007 uses several third party components, but these
don't appear to be a problem:
TeeChart, Dev Express, ReportBuilder etc.
Then it also
Hi,
Try this:
procedure DrawCurve;
var
p1, p2, p3 : TPoint;
mp1, mp2 : TPoint; // chord midpoints
c : TPoint; // centre of circle
rad : double; // radius of circle
r1, r2 : TPoint; // bounding rectangle (square)
m1, m2 : double; // slope of 2 chords
x : double; // temp
Does North Shore count? :)
Add Webdata Ltd.
Steve
-Original Message-
From: Leigh Wanstead [mailto:lei...@softtech.co.nz]
Sent: Wednesday, 19 January 2011 6:53 a.m.
To: NZ Borland Developers Group - Delphi List
Subject: [DUG] Auckland company developing application in
Delphi
words[0]+' '+words[22]+' '+words[26]+' '+words[32]+' '+words[28]+'
'+words[-1]
Steve
_
From: John Bird [mailto:johnkb...@paradise.net.nz]
Sent: Tuesday, 17 August 2010 3:55 p.m.
To: NZ Borland Developers Group - Delphi List
Subject: Re: [DUG] MSSQL ID field binary(8)
I think I have
Hi Sandeep,
I don't use MSSQL, but I did have to do a job with it a few years back and
got caught out with the customer's db being set to case sensitive which
affected all objects - just a thought,
Steve
-Original Message-
From: Sandeep Chandra [mailto:sandeep_gro...@yahoo.com]
Hi Rob,
Not sure why that URL is broken at this stage, but try this one:
http://mailman.123.net.nz/mailman/listinfo/delphi
or just email me what you want to change,
cheers,
Steve
-Original Message-
From: Robert martin [mailto:r...@chreos.co.nz]
Sent: Wednesday, 7 April 2010 12:24
yep - used CadSoft components for a quantity surveying application:
http://www.cadsofttools.com/ http://www.cadsofttools.com/
regards,
Steve
_
From: Marshland Engineering [mailto:marshl...@marshland.co.nz]
Sent: Sunday, 21 March 2010 1:17 p.m.
To: delphi@delphi.org.nz
Subject:
Hi Wallace,
You could play with RTTI, but as there are only 9 I'd tend to look at a
simple array of function pointers and string function names. Or use a
stringlist (for the names) and store the function pointers in the associated
objects list. At runtime set up the function pointers using the
Hi,
I have a report from a Windows 7 user that a message from my app does not
show unless XP compatibility mode is selected.
The code that should fire is:
messagedlg(msg, mtCustom, [mbOk], 0);
It is being ignored when run under normal Windows 7 default mode.
Any ideas?
I don't use
.
This is not a very plausible real-world example, but is intended only to
illustrate my point/question.
From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz] On
Behalf Of Stephen Barker
Sent: Wednesday, 20 January 2010 11:16 a.m.
To: NZ Borland Developers Group - Delphi List
Subject: [DUG
1. Still maintaining Delphi code?
Yes - hundreds.
2. Started a new Delphi project in the last year?
Yes - several
3. Started a new project in another language in the last year
(what was
the language)?
Yes - PHP
4. What other languages are you using learning?
Other web stuff
Also, depending on your database and tdataset derivative capabilities, look
for methods like:
.FlushBuffers (on the table just updated)
.Refresh (on the other table)
.GotoCurrent (to synchronise the cursors if needed)
Steve
_
From: Marshland Engineering
Testing? Isn't that what users are for? :)
Mocking sounds appropriate for a lot of them too.
SB
_
From: Richard Vowles [mailto:rich...@developers-inc.co.nz]
Sent: Tuesday, 20 October 2009 8:25 a.m.
To: NZ Borland Developers Group - Delphi List
Subject: [DUG] Mocking Delphi
Mocking
Of Stephen Barker
Sent: Friday, 25 September 2009 17:08
To: NZ Borland Developers Group - Delphi List
Subject: [DUG] GPS NMEA parser
Hi,
I can't seem to locate any free Delphi code for this, although other
language examples are around.
I was about to start writing my own for a small project
Hi
Before I start downloading and testing various alternatives, just wondered
if anyone has any preferences.
Free or cheap component for connecting to MySql.
This doesn't need all the bells and whistles. I just need to do a nightly
transfer of data between a MySql db and another local db.
There's also the old TurboPower stuff (free) at:
http://sourceforge.net/projects/tpofficepartner/
I have used this on occasion in the past, but no recent dev or fixes have
been made so you're on your own.
Steve
-Original Message-
From: Jeremy Coulter [mailto:jscoul...@gmail.com]
Charlie,
You can get the currently logged in user from code like this:
function Tdm.NetworkID: string;
var buffer : string;
buffSize : DWORD;
bRet: boolean;
begin
buffSize:=128;
SetLength(buffer,buffSize);
bRet := GetUserName(PChar(buffer), buffSize);
if bRet then
Result
Server 2003 can address up to 128GB (4GB for SBS) in the 32 bit edition or
2TB in 64 bit.
Funnily enough,Server 2008 can only address 64GB in the 32 bit version.
That must really annoy people.
Who would ever need 64GB Ram? J
Isn't it fantastic to be even having this discussion? (remembering
Hi John,
I did a small modem app recently and asynchpro refused to work for me (with
caller id stuff) so switched to this component which worked very well:
http://sourceforge.net/projects/comport/
http://sourceforge.net/projects/comport/
Steve
_
From: John Bird
Hi Richard,
Works for me at around 200 to 300 kB/sec as reported by FF3.
Steve
From: Richard Vowles [mailto:rich...@developers-inc.co.nz]
Sent: Tuesday, 12 May 2009 9:59 a.m.
To: NZ Borland Developers Group - Delphi List
Is the text part of a link? If not you're probably out of luck unless you
make it so:
a href=#the text/a
If already a link you probably want something like this:
td. MenuButton a:hover {
color:RED;
font-weight: Bold;
}
cheers,
Steve
_
From: PDS
I cannot recommend Vodafone after they made a huge mess of transferring
home/office phones and broadband. Customer service was abysmal.
However, now that it is running, it seems reliable and much faster than
before.
Speed test reports 7.4 Mb/s.
Bittorrents hit 1.2 MB/s.
Steve
_
From:
Hi John,
That site is doing it the old way with html tables. It works and is
reliable but includes a lot of extra tags in the markup which only relate to
layout and not content. The modern approach is to use CSS wherever possible
so the html source is cleaner. This becomes even more important if
Hi Steve,
As much as I didn't want to continue this thread, I had to pick up on the
Osborne 1. In one of my first jobs after Uni (81/82) I introduced one of
these to NZI so they could do stuff outside the DP Dept.
I recall setting up a Supercalc spreadsheet to do branch budgets, but the
twin
Hi Jeremy,
I had to translate a small app last year into Dutch and German and just
created some ini files one for each language, with name/value pairs of words
and phrases in them. The main app ini specifies which language to use at
runtime. For this app we were mainly only asked to translate
Hi John,
Are you trying to locate the same string within multiple fields? If so, I
don't think the locate will help you there.
Try using the onfilterrecord event as Neven said, or a filter expression
like this if your database allows it:
.filter := 'name like ''%'+findstr+'%'' or address1 like
Hi,
I'm evaluating Delphi's TActionManager/TActionMainMenuBar/TActionToolBar
components for a couple of projects here.
It seems that when you allow the user at runtime to customise the toolbars
and menus, the component streams to a file to save the current toolbar
layouts.
However, if I later
Hi Jeremy,
I have here a small app I did a long time ago (D5) which reads .mbx files
and views, deletes, extracts emails.
You're welcome to the source if it helps,
regards,
Steve
_
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, 24 July 2008 10:10 a.m.
To:
Hi,
I've noticed the same on some web servers, where we typically have product
images stored externally from the product database.
After deleting the product record, sometimes the image file deletion fails.
In this case we trap that and queue it for later deletion in a nightly
process.
Has anyone got any Delphi code for creating captcha images?
(http://en.wikipedia.org/wiki/Captcha http://en.wikipedia.org/wiki/Captcha
)
I've got examples in other languages, but specifically need Delphi. ISTR
reading an article on one in Delphi a while back but can't find it now.
Google
Look at TPaintBox in ExtCtrls.
Use it's OnPaint event to do the drawing onto it's canvas.
Steve
-Original Message-
From: Bob Pawley [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 23 April 2008 5:26 p.m.
To: DUG
Subject: [DUG] Delphi Canvas
I want to create an interface using
Hi Jeremy,
I received at 9:16pm - but then I use MS Exchange Server :(
Did you send the message to:
[EMAIL PROTECTED]
BTW, it should be sent to: delphi@delphi.org.nz
That shouldn't have affected the delivery time though.
cheers,
Steve
-Original Message-
From: Jeremy Coulter
I don't have a need for a lot of this but I use WinMerge for 2way.
http://winmerge.org/
Steve
-Original Message-
From: Myles Penlington [mailto:[EMAIL PROTECTED]
Sent: Friday, 12 October 2007 8:45 a.m.
To: NZ Borland Developers Group - Delphi List
Subject: RE: [DUG] Source Control
Hi all,
I've never done any CF.NET stuff so wanted to try a little test app. After
loading the new RadStudio2007 I assumed we'd have something more than
BDS2006 had in this area. It seems though we have less, as they have removed
WinForms.
Does this mean we have to go back to BDS2006 to do any
I know this has been discussed here before, but are there any more recent
opinions on the merits of
1. using TActionManager, TActionMainMenuBar, TActionToolBar.
It seems to be a better framework than the original TMainMenu and
TActionList etc.
2. decent PNG handling in conjunction with the
with a client (otherwise I'd try to track it down).
Alister Christie
Computers for People
Ph: 04 471 1849 Fax: 04 471 1266
http://www.salespartner.co.nz
PO Box 13085
Johnsonville
Wellington
Stephen Barker wrote:
I know this has been discussed here before, but are there any more
recent
Thanks Jeremy,
I'll look into those styles some more...
Did you use png glyphs with yours?
It might be simpler for me to go back to bmp versions of the glyphs for now.
cheers,
Steve
-Original Message-
From: Jeremy North [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 3 October 2007
I'd second that,
On a daily basis I use d5, d7, d2007 and it is a pain going back to the
older ide's. I have all 3 open right now as I flick between jobs.
I have legacy projects in the older versions which aren't practical to
upgrade - mostly because of different third party component versions -
Thanks guys,
The drag and drop sounds perfect,
regards,
Steve
-Original Message-
From: David Moorhouse [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 28 August 2007 10:47 p.m.
To: NZ Borland Developers Group - Delphi List
Subject: Re: [DUG] TPageControl tab re-ordering. was:
Hi,
While we're on the subject - I've just had a request to allow the user to
modify the tab positions on a pagecontrol at runtime.
Any easy way to do this or would I need to search for a replacement
component?
Project is d5 but soon to be d2007.
thanks,
Steve
_
From: Rohit
Hi,
Xtra are now requiring SSL, port 465 for sending:
with Yahoo!Xtra Pro Mail
http://xtra.co.nz/help/0,,4150-7780758,00.html
I haven't used Indy for SSL connections, but I have used it with smtp
authentication:
...
statusbar1.panels[0].Text:='Sending';
application.processmessages;
Tracey,
Are you not able to debug your cgi app? Why is that not an option?
If it is a setup thing, this is what I use:
Install lightweight web server, e.g. Omni
(http://www.omnicron.ca/httpd/download.html
http://www.omnicron.ca/httpd/download.html )
In Delphi, Run/Parameters/host application:
Try the OnGetText event to format the value any way you want.
The fields that are common can share the same event handler.
Steve
-Original Message-
From: Robert martin [mailto:[EMAIL PROTECTED]
Sent: Monday, 6 August 2007 2:12 p.m.
To: NZ Borland Developers Group - Delphi List
Any luck registering?
If I try to logon with what I think my password is it says: Incorrect email
or password.
If I use the forgotpassword link it says: The email address in invalid.
please enter a new email address.
If I register as a new user it says: User could not be created/updated due
to an
I've been buying from Ingram Micro/Tech Pacific/Imagineering or whatever
they've been called since they were about a 5 person company in Wairau Rd 20
years ago.
However, in recent years when I can be bothered I shop around using pricespy
or more often than not supercheappc.biz. When it's for
I've never bothered with the command line compiler before.
What differences in settings do you all make for release versions?
I suppose it gets around the old problem of leaving datasets open at design
time and forgetting to close them before compiling a release version. That's
about all I
Interesting stuff...
Is it just me or is anyone else horrified by the with statement abuse in
example function getStructures?
Steve
-Original Message-
From: Sean Cross [mailto:[EMAIL PROTECTED]
Sent: Thursday, 10 May 2007 1:49 p.m.
To: NZ Borland Developers Group - Delphi List
Hi Neve :)
I'm not one of the many who don't use the with statement at all, but I only
use it sparingly and never nested 3 levels deep like the example. I usually
end up removing it during debug sessions anyway and kick myself for using it
in the first place.
I think your mate Malcolm Groves
I've got the help working right now in d2007, but occasionally it doesn't.
It just comes up with some message like 'not in index' or similar.
We had a brief problem with a DBISAM release which was fixed straight away,
see below. It might be worth you trying to re-register the help in a similar
___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://ns3.123.co.nz/mailman/listinfo/delphi
Unsubscribe: send an email to [EMAIL PROTECTED] with Subject: unsubscribe
Hi all,
Apologies if you see this multiple times, but it is being sent to each of
the 3 lists:
Delphi, Offtopic and Interbase
We are currently reorganising these lists so they will be associated with
the appropriate domain name, i.e.
delphi.org.nz
So from now on to post to the lists, send
change the C:\ to Server.MapPath(). And CreateTextFile seems
to only have 2
parameters. What does the 3rd one do?
unicode flag - defaults to false which means ascii
Steve
---
New Zealand Delphi Users group - Delphi
You could just roll your own based on things like hard drive serial no., n/w
card mac address etc.
I've done this before and also used Turbopower's Onguard - open source now?
The simplest way for your web server to write a text file would be to use an
asp script and use the FileSystemObject to
I'm having trouble passing an array into AutoCad - getting one back is not a
problem.
code looks like:
var
Spline, SplineCoords, StartTangent, EndTangent : OLEVariant;
begin
SplineCoords := VarArrayOf([1,1,0, 5,5,0, 10,0,0]);
StartTangent := VarArrayOf([0.5,0.5,0]);
EndTangent :=
: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Stephen Barker
Sent: Sunday, 2 November 2003 6:30 p.m.
To: Multiple recipients of list delphi
Subject: [DUG]: OLEVariant arrays
I'm having trouble passing an array into AutoCad - getting
one back is not a problem.
code
VtreeSearchList:=nil;
Is the above valid for reuse. And on form close, is it tidied
up without further
freeing?
yes. alternatively: setlength(VtreeSearchList, 0) or Finalize(...
you can use setlength to allocate it again for reuse.
Steve
end else if (ClassType = TPeasants) then begin
newX := X + Sender.Left; // ERROR
newY := Y + Sender.Top; // ERROR
I think you want something like:
end else if (ClassType = TPeasants) then begin
newX := X + TPeasants(Sender).Left;
newY := Y +
i use fastnet to send emails, and have had no problems with it.
I also didn't have problems for a couple of years - then I found it wouldn't
work with one of our mail servers (Linux/Sendmail).
Switched to Indy - no more probs.
Steve
tab reports: easily achieved.
4).
Rich text capability: much better than QR
Steve, we need to export to Pdf files too, would you mindsharing
some info on how this is achived?
Regards
Cheng
-Original Message-From: Stephen Barker
[mailto:[EMAIL PROTECTED]Sent
Title: Message
I use
FR now - it's great - even has pascal scripting.
Haven't used RB, but have used QR and Rave and I still prefer
FR.
I also
recently put together an export component that allows me to export pdf files.
Great for Purchase Orders, Invoices or archiving reports for later
Mark,
you need to do:
TDBISAMDataSet(DataSet).FlushBuffers;
regards,
Steve
-Original Message-
From: Mark Howard [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 26 August 2003 2:17 p.m.
To: Multiple recipients of list delphi
Subject: [DUG]: FlushBuffers
Hi all
What's wrong with
John,
you can just display an image of a checkbox in the DrawColumnCell event -
see below code (written by someone else)
cheers,
Steve
Displaying a checkbox within a DBGrid for use with Boolean fields
Displaying a checkbox in a DB Grid doesn't necesarily mean you have to have
a TCheckBox
PPS the server for some reason bouces my mails and has done
since I have been on
this list - this is the third transmission of this message
Al,
can you send me the bounced message and I'll look into it.
I just checked the list and you're definately there under your xtra account.
regards,
to include the text file contents within an html page you need a server side
include.
depends on your hosting environment and web server - ask your hosting
company what they have available - otherwise you may have to use scripting
such as asp, php etc.
another approach might be to use frames and
If it's any help, I have some source for fast replacements for pos and
replace functions (assembly), originally provided by Peter Morris - I think
on this group many years ago.
Steve
-Original Message-
From: Phil Middlemiss [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 22 July 2003 11:00
something with optimised search and replace, possibly xml and
html handling
routines etc.
About a year ago I was working on an app and had all sorts of problems with
MSHTML then OpenXML etc, and finally settled on a compact freeware html
parser to do the job (scraping html pages at a high
I'm about to give up on this but maybe someone can help:
I've got a complex form split into 3 regions each with a PageControl and
loads of data aware components such as dbgrid, dbedit, dbcombo as well as
labels etc.
I want to know when the user has selected one of the 3 regions by clicking
Mark,
you don't need to free the QR1 component - it is owned by the form and will
get destroyed when the form destroys.
regards,
Steve
-Original Message-
From: Mark Howard [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 10 June 2003 1:42 p.m.
To: Multiple recipients of list delphi
Hi all,
Somehow the Offtopic list has lost many of you - it seems there are only 89
members vs. 216 on the Delphi list.
I seem to recall something like this happening a while back with the Delphi
list and Gary restored from backup.
Quickest fix would be for me to copy the Delphi list members
OK - I've removed all members of Offtopic list, and imported members from
the Delphi list.
Instructions for Subscribing and UnSubscribing via email are below.
It seems the web site for www.delphi.org.nz is no longer on our server and
that Richard is looking after it - I'll talk to him to see if
Mark,
in addition to the 'start wait' option others have mentioned, I have had on
occasion to add a delay in a batch file while waiting for a file to be fully
written/closed etc.
I have a small wait.exe which takes a parameter of no. of seconds to wait -
I can send it if you want.
regards,
the wait expires)?
-ns
http://www.roserox.co.th
- Original Message -
From: Stephen Barker [EMAIL PROTECTED]
To: Multiple recipients of list delphi [EMAIL PROTECTED]
Sent: Friday, May 30, 2003 08:34
Subject: RE: [DUG]: OffTopic Batch file question
Mark,
in addition
Title: Reporting ... D5, from TDataset
I can
recommend fastreport:
http://www.fast-report.com/en/index.php
regards,
Steve
-Original Message-From: James Low
[mailto:[EMAIL PROTECTED]Sent: Monday, 31 March 2003 01:14
p.m.To: Multiple recipients of list delphiSubject:
[DUG]:
try going into:
control panel/system/advanced/environment variables
where you can edit TEMP vars for both the system and the currently logged on
user
regards,
Steve
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, 4 March 2003 12:07 p.m.
To: Multiple
further to what Rob said:
it is not clear from your main form code snippet what 'sender' is so try
something like:
NewCorrKey := WriteNewCorrRecord(Self.UV,CORR,CORI,PolNum); // this
calls DatabaseUtils.pas
Code from DatabaseUtils.pas:
function WriteNewCorrRecord(UV: TUVObjects;
Al,
if this is the application's main form then from the help:
TApplication
property ShowMainForm: Boolean;
Description
Use ShowMainForm to control whether and when the application shows its main
form.
The default value of True is set in the constructor. When ShowMainForm is
True the main
DBISAM is an excellent product, and my first choice for many situations, but
be aware of the following:
Table indexes are critical for decent speed.
Keep away from multiple joins with large tables.
Indexes are Case-Sensitive by default - be careful if converting from BDE.
Date format is ANSI i.e.
I concur,
use inno setup - for a simple setup, 5 minutes of reading the docs will do
it.
Steve
-Original Message-
From: Nello Sestini [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 4 December 2002 03:53 p.m.
To: Multiple recipients of list delphi
Subject: Re: [DUG]: Installer
Mark,
as you're using DBISAM, I would tend to use a DBISAM memory table with
method:
.ImportTable('thefile.csv',...)
Alternatively, depending on how you want to process the data, use a couple
of stringlists:
var SLTable, SLRecord : TStringList;
...
SLTable.LoadFromFile('thefile.csv');
for i:=0
Hi Leigh,
which version are you after?
I have 4 separate licenses here, and don't need them all any more.
regards,
Steve
-Original Message-
From: Leigh Wanstead [mailto:[EMAIL PROTECTED]]
Sent: Friday, 13 September 2002 09:25 a.m.
To: Multiple recipients of list delphi
Subject:
windows explorer, BDEAdmin.exe - right click, properties, version
tab.
or
from within BDEAdmin, config tab, right click, version info
Steve
-Original Message-From: Paul McKenzie
[mailto:[EMAIL PROTECTED]]Sent: Wednesday, 11 September 2002 08:37
a.m.To: Multiple recipients
simplest way is:
SID := random(high(Integer));
which allows for 2 billion (4 if you use a cardinal).
Maybe try int64 if you really need that many.
Depends on your purposes, but for short term ID's I find 2 billion more than
enough.
regards,
Steve
-Original Message-
From: Myles
CSV
(or Tab-separated) is good, but don't forget to strip out embedded commas from
fields or use AnsiQuotedStr() on those fields.
Alternatively, move the data to a dBase file either using TTable (BDE),
or even one of the non-BDE freeware DBF components.
Steve
-Original
Title: RE: [DUG]: Source Scrounge
RX
tools also has one called comboedit.
regards,
Steve
-Original Message-From: Tom Munro Glass
[mailto:[EMAIL PROTECTED]]Sent: Tuesday, 16 October 2001
12:47To: Multiple recipients of list delphiSubject: RE:
[DUG]: Source Scrounge
LMD
I know this goes against common design standards, but I find the following
much easier to read with less clutter:
if something then begin
dostuff
end else begin
dootherstuff
end;
It's definately a personal thing, but as I always tend to use compound
statements I find the begin statement
Anyone going this year?
The rego fee has risen substantially: $1464 (user group rate).
There doesn't appear to be any product discount this time either :(
regards,
Steve
---
New Zealand Delphi Users group - Delphi List
Title: Message
Mark,
If you
are using Paradox you only need to do like:
tbarchive := nil;
try Screen.Cursor :=
crHourglass; tbArchive :=
TTable.create( nil ); with
tbArchive do
begin
databasename :=
datadir;
tablename :=
'archive.db';
exclusive :=
true; end;
try
tbarchive.open;
- Original Message -
From:
Stephen
Barker
To: Multiple recipients of list delphi
Sent: Wednesday, August 15, 2001 6:32
PM
Subject: RE: [DUG]: Getting the current
user
function NetworkID:
string;var buffer : string; buffSize :
DWORD
Mark - just F1 on GetUserName in the editor works for me (D5 pro)
Steve
-Original Message-
From: Mark Howard [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 16 August 2001 12:07
To: Multiple recipients of list delphi
Subject: Re: [DUG]: Getting the current user
UhOh - Doesn't sound
the following function may be useful to return where the dll resides:
function GetDLLName : String;
var
Buffer: array[0..MAX_PATH{260}] of Char;
begin
SetString(Result, Buffer, GetModuleFileName(HInstance, Buffer,
SizeOf(Buffer)))
end;
use extractfilepath(GetDLLName) if you only want the
function NetworkID:
string;var buffer : string; buffSize :
DWORD; bRet: boolean;begin
buffSize:=128; SetLength(buffer,BuffSize); bRet :=
GetUserName(PChar(buffer), buffSize); if bRet
then result := strpas(PChar(buffer))
else Result := '';end;
-Original Message-From: Mark Howard
Rohit,
I note that any mail I post from home is being rejected again.
I would appreciate it if you would just confirm that the
following can
post mail to the DUG
[EMAIL PROTECTED]
yes
[EMAIL PROTECTED]
yes
[EMAIL PROTECTED]
yes
They are all on the list. At present we manually
If you are after a high resolution timer, I looked into the following
recently:
(ended up buying this one as it was specified by the client for both VB and
Delphi)
http://www.ryledesign.com
or good freeware component:
http://www.mistral.co.uk/gbamber/bin/CPUID.ZIP
regards,
Steve
the table. This resets the AutoInc field to the last number
+1, and should
allow posting to the table again.
only if there's no foreign key in another table
Speaking of which, I had to do this a couple of months ago: convert a large
Delphi/Paradox app from using many autoinc
Donovan,
If the
range of ID's are not too sparse then an array would be a very direct way of
looking them up.
Another way would be a linked list of records or a 2 dimensional
arrayholding ID and Code, and pre-sort the list by ID. then look it up
with a binary search or B-Tree or similar.
James, your're from Baycom? Are they now a Delphi house?
Remember me to Bill George if he's still around - we were using his
accounting modules in our Aluminium Window system back in '82/'83 written in
dBase II under CP/M.
regards,
Steve
-Original Message-
From: James Low
Thanks for the reminder Mark,
I have also put the link on the sig line as suggested by Peter,
cheers,
Steve
-Original Message-
From: Mark Derricutt [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 10 July 2001 13:18
To: Multiple recipients of list delphi
Subject: Re: [DUG]: Alternative
1 - 100 of 155 matches
Mail list logo