I am trying to use a string (not CString) variable in the GetFile to represent the remote file. When I try to compile I get this error message:
C:\Current_Projects\JTraderFTP\JTraderFTP.cpp(83) : error C2664: 'GetFile' : cannot convert parameter 1 from 'class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >' to 'const char *'
No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
Error executing cl.exe.
I have searched Google and have not found any information on the restriction of utilizing regular strings vs. CString variables in GetFile. The GetFile statement is as follows:
ftpConnection->GetFile(RFile, "C:\\dumped\\newfile.txt", FALSE);
Any help on this subject (or point me to the right area to look up the information) is greatly appreciated. Thanks.
Dave Christman
C:\Current_Projects\JTraderFTP\JTraderFTP.cpp(83) : error C2664: 'GetFile' : cannot convert parameter 1 from 'class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >' to 'const char *'
No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
Error executing cl.exe.
I have searched Google and have not found any information on the restriction of utilizing regular strings vs. CString variables in GetFile. The GetFile statement is as follows:
ftpConnection->GetFile(RFile, "C:\\dumped\\newfile.txt", FALSE);
Any help on this subject (or point me to the right area to look up the information) is greatly appreciated. Thanks.
Dave Christman