[Solved] Uploading to an FTP server

[ad_1]

I don’t know C++/CLI, but the following statement is certainly wrong:

_FtpWebRequest->Method = System::Net::WebRequestMethods::Ftp.UploadFile;

System::Net::WebRequestMethods::Ftp is a type and, as the error message indicates (you could have given us the line number!) you’re trying to use it as an expression.

Are you trying to obtain a pointer to a static member function?

Did you thus mean the following?

_FtpWebRequest->Method = System::Net::WebRequestMethods::Ftp::UploadFile;

0

[ad_2]

solved Uploading to an FTP server