Prob not quite the same, but would expect to be quite similar.

 

Compile the code and put a break point on the line, then check the CPU
view when hit - will be able to see the different code that has been
generated.

 

Myles.

 

 

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Rohit Gupta
Sent: Wednesday, 16 May 2007 12:06
To: NZ Borland Developers Group - Delphi List
Subject: [DUG] String Conversion

 


When converting a pchar to ansistring, 

p : pchar;
a : ansistring;

do the following do the same thing ?

a := p;
a := string(p);

I can not find the latter in the Delphi help but is being used by
Crystal Reports, which is crashing when handling strings between the app
and the dll.



-- 

Rohit Gupta

B.E. Elec.   M.E.   Mem IEEE    Associate IEE

Technical Manager

Computer Fanatics Limited

 

Tel     +64 9 4892280

Fax    +64 9 4892290

Email  [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> 

Web    www.cfl.co.nz <http://www.cfl.co.nz/> 

 

________________________________

This email and any attachments contain information, which is
confidential and may be subject to legal privilege and copyright. If you
are not the intended recipient, you must not use, distribute or copy
this email or attachments. If you have received this in error, please
notify us immediately by return email and then delete this email and any
attachments. 



Attention:
This communication is confidential and may be legally privileged.  If you are 
not the intended recipient, please do not use, disclose, copy or distribute it, 
other than to return it to us with your confirmation that it has been deleted 
from your system.
_______________________________________________
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to [EMAIL PROTECTED] with Subject: unsubscribe

Reply via email to