Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

String to Pchar?

Status
Not open for further replies.

SpeedDemon

Programmer
Jan 1, 2001
70
GB
hi all, im trying to use the CopyFile funtion, however im generate the destination file dynamically and so it is a string.

I need to convert this into a Pchar, well this is the error the compiler throws up. How do I convert it????

Any help would be appreciated!!

Cheers
 
hi,

The way to do this properly is

PCHAR(string); // string is a variable of the type string
or
PCHAR('Text');


Steph
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top