[DUG] Converting some code from C

2004-04-18 Thread Phil Middlemiss
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) =

Re: [DUG] Converting some code from C

2004-04-18 Thread Terry
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

[DUG] Dumb question

2004-04-18 Thread Robert martin
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

Re: [DUG] Converting some code from C

2004-04-18 Thread Phil Middlemiss
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

[DUG] NT Users and groups.

2004-04-18 Thread Myles Penlington
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

Re: [DUG] Converting some code from C

2004-04-18 Thread Phil Middlemiss
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

RE: [DUG] NT Users and groups.

2004-04-18 Thread JeremyN
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

Re: [DUG] Converting some code from C

2004-04-18 Thread Terry
** 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

RE: [DUG] Dumb question

2004-04-18 Thread Daryl Marsden
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

Re: [DUG] Dumb question

2004-04-18 Thread Leo
AsLargeIntLeo Software Developer CFL [EMAIL PROTECTED] http://www.cfl.co.nz ___ Delphi mailing list [EMAIL PROTECTED] http://ns3.123.co.nz/mailman/listinfo/delphi

RE: [DUG] Reporting to Excel

2004-04-18 Thread Daryl Marsden
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