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.
_______________________________________________
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