I'm converting some code from some ugly C. The code defines one particular
array, and a constant like this:
static float snorm[169];
static float *p = snorm;
and then later has an assignment:
*snorm = 1.0;
and then again later (n is an integer iterator):
*(snorm+n) =
Pointers and arrays are essentially equivalent in c. And pointer
arithmatic works like array indexation, so ...
*(snorm+n) = *(snorm+n-1)*(float)(2*n-1)/(float)n;
and
snorm[n] = *(snorm+n-1)*(float)(2*n-1)/(float)n;
and
snorm[n] = snorm[n-1]*(float)(2*n-1)/(float)n;
are all equivalent
Hi All
This may be a dumb question but...
How do I assign an Int64 variable to a Int64 field
in a DB. Usually we use FieldByName('sdf').AsInteger := xx to assign values.
What is the appropriate way to do this?
Rob MartinSoftware Engineerphone
03 377 0495fax 03 377 0496 web
OK, thanks for that. I had assumed that they were equivalent, but the useage
in the original code is mixed (sometimes pointer sometimes array indexed) so
I thought I'd better check.
Cheers,
Phil.
- Original Message -
From: Terry [EMAIL PROTECTED]
To: NZ Borland Developers Group - Delphi
Hi,
Has anybody got any
code/components that can retrieve the list of NT users and groups for a NT
Domain
Thanks
Myles.
___
Delphi mailing list
[EMAIL PROTECTED]
http://ns3.123.co.nz/mailman/listinfo/delphi
Thankyou.
Whatdoes the ** operator in C?
Cheers,
Phil.
- Original Message -
From:
Terry
To: NZ Borland Developers Group - Delphi
List
Sent: Monday, April 19, 2004 1:20
PM
Subject: Re: [DUG] Converting some code
from C
return exits the function
http://www.wilsonc.demon.co.uk/delphi.htm
NT Specific Component package should get you started.
cheers,
JED
-Original Message-
From: Myles Penlington [mailto:[EMAIL PROTECTED]
Sent: 19 April 2004 1:19 PM
To: '[EMAIL PROTECTED]'
Subject: [DUG] NT Users and groups.
Hi,
Has anybody got
** is double indirection. Pointer to a pointer.
If you have ...
char * p;
then *p is a char, p is a pointer to a character.
If you have...
char ** p;
then **p is a character, *p is a pointer to a character, p is a
pointer to a pointer to a character.
All parameters in C are passed by
DataSource.DataSet.FieldValues['FieldName'] := Variable; //is how I do it
when data types match.
Visit us online at http://www.ecan.govt.nz
**
This email and any files transmitted with it are confidential and
intended solely
AsLargeIntLeo
Software Developer
CFL
[EMAIL PROTECTED]
http://www.cfl.co.nz
___
Delphi mailing list
[EMAIL PROTECTED]
http://ns3.123.co.nz/mailman/listinfo/delphi
I'm guessing:
the XL viewer is just that - data that has previously be calculated can be
seen while values that need to be calculated are not available. It's what I
would expect from MS.
Daryl Marsden
Project Management Analyst
Environment Canterbury
P O Box 345
Christchurch
Visit us online
11 matches
Mail list logo