none
how to transfer files through wifi in MFC RRS feed

Answers

  • at last i am done it

    bool success;
    SHFILEOPSTRUCT*  pFileStruct = new SHFILEOPSTRUCT;
    ZeroMemory(pFileStruct, sizeof(SHFILEOPSTRUCT)); 
    pFileStruct->hwnd            = NULL;
    pFileStruct->wFunc           = FO_COPY;
    pFileStruct->pFrom           = (TCHAR*)_T("localpath"); 
    pFileStruct->pTo             =  (TCHAR*)_T("\\\\wifinetworkpath"); 
    pFileStruct->fFlags          = FOF_SILENT  | FOF_NOCONFIRMATION | FOF_NOCONFIRMMKDIR; 
    int status                   = SHFileOperation(pFileStruct);
    delete pFileStruct;
    if(status                    == 0)
    {
    bool success             = true;
    }
    success = false;

    Thank you for the support :)

    bilaal

    • Marked as answer by Bilaal John S Thursday, September 26, 2013 11:33 AM
    Tuesday, September 10, 2013 4:39 AM

All replies

  • If you know socket programming won't that be enough for transferring files. The underlying network engine will take care of the rest.


    Blog: http://ntcoder.com/bab


    Posts are provided as is without warranties or guaranties.

    Thursday, September 5, 2013 2:33 PM
    Moderator
  • thank you Nibu .i am  looking for samples.

     

    Friday, September 6, 2013 4:20 AM
  • at last i am done it

    bool success;
    SHFILEOPSTRUCT*  pFileStruct = new SHFILEOPSTRUCT;
    ZeroMemory(pFileStruct, sizeof(SHFILEOPSTRUCT)); 
    pFileStruct->hwnd            = NULL;
    pFileStruct->wFunc           = FO_COPY;
    pFileStruct->pFrom           = (TCHAR*)_T("localpath"); 
    pFileStruct->pTo             =  (TCHAR*)_T("\\\\wifinetworkpath"); 
    pFileStruct->fFlags          = FOF_SILENT  | FOF_NOCONFIRMATION | FOF_NOCONFIRMMKDIR; 
    int status                   = SHFileOperation(pFileStruct);
    delete pFileStruct;
    if(status                    == 0)
    {
    bool success             = true;
    }
    success = false;

    Thank you for the support :)

    bilaal

    • Marked as answer by Bilaal John S Thursday, September 26, 2013 11:33 AM
    Tuesday, September 10, 2013 4:39 AM