Re: Problem with CommandText concatenation - Visual C++



string sCmd;
[snip]
cmd->CommandText = sCmd;

Is this std::string? If so, try

cmd->CommandText = sCmd.c_str();

Stephen Howe


.