Click to See Complete Forum and Search --> : FtpCommand not defined in Visual Studio


codepanter
October 5th, 2006, 01:49 AM
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 .....................

MrViggy
October 5th, 2006, 09:57 AM
Well, if it's part of the latest SDK, you can download the latest SDK from Microsoft:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sdkintro/sdkintro/devdoc_platform_software_development_kit_start_page.asp

Viggy