I am getting an error in the below program:
error: cannot convert 'std::string' to 'char*' for argument '1' to 'char* strcpy(char*, const char*)'
std::string machine, account, passwd, dummyString;
short sRc = FtpDestGet( BAC_REQ_DEST, machine, account, passwd, dummyString );
if ( sRc )
{
fprintf( stderr, "Cannot retrieve target machine information from database, error code %ld\n", sRc );
return ERROR;
}
strcpy( passwd, getenv(BAC_REQ_DEST));
fprintfwith insertions tostd::cerr.