CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    May 2006
    Posts
    57

    Red face FtpCommand not defined in Visual Studio

    Hi,

    1)In my application im calling this function

    ::FtpCommand(hConnect, // WinInet Connection handle
    FALSE, // No, I don't expect a response
    FTP_TRANSFER_TYPE_BINARY, // I'm receiving ASCII
    strSeekOffsetCMD.c_str(), // This is the FTP command I am passing
    0, // No context needed
    &hResponse); // The handle to read the response

    But im getting error like this......

    C:\Documents and Settings\Administrator\Desktop\pr\PauseResumeDemoDlg.cpp(311) : error C2039: 'FtpCommand' : is not a member of '`global namespace''
    C:\Documents and Settings\Administrator\Desktop\pr\PauseResumeDemoDlg.cpp(311) : error C2065: 'FtpCommand' : undeclared identifier
    Error executing cl.exe.

    this FtpCommand has to be declared in WinInet.h.................but in VC98
    it is not defined how can i solve this issue .....................

  2. #2
    Join Date
    Feb 2002
    Posts
    4,640

    Re: FtpCommand not defined in Visual Studio

    Well, if it's part of the latest SDK, you can download the latest SDK from Microsoft:

    http://msdn.microsoft.com/library/de...start_page.asp

    Viggy

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured