Home > Software engineering >  Could you tell me how to use MFC realize FTP breakpoint download?
Could you tell me how to use MFC realize FTP breakpoint download?

Time:10-14

The FTP server side has a file, how can I achieve part of every time to download the file, download each 1/10, for example, could you tell me how to achieve this? Use MFC

CodePudding user response:

Functions: add strSource refers to the string to the end strDestination, covering the end strDestination '\ 0' and add '\ 0',
Description: strSource and the reference memory area can not overlap and strDestination strDestination must have enough space to accommodate strSource string,
Return value: returns a pointer to the strDestination. No return value is reserved to indicate an error.
Note: because wcscat before strDestination additional strSource don't check, this is a potential cause of buffer overflow, therefore, should be paid attention to when using, it is recommended to use wcscat_s instead.

CodePudding user response:

http://blog.csdn.net/syc1988109/article/details/8514584
  • Related