When I try to build an MFC project that has been ported to the VC++ 2005 compiler I get the following linker error:
ProgramName error LNK2019: unresolved external symbol __imp__FtpCommandA@24 referenced in function "public: class CInternetFile * __thiscall CFtpConnection::Command(char const *,enum CFtpConnection::CmdResponseType,unsigned long,unsigned long)" ( Command@CFtpConnection@@QAEPAVCInternetFile@@PBDW4CmdResponseType@1@KK@Z)

Linker Error in MFC App ported to VC++ 2005
jeff w smith
Thanks,
Ayman Shoukry
VC++ Team
DarkShadow
#include <afxinet.h>
I suspect this method to be the one which is causing the error:
bool
CApplicationProcessor::PerformAuthentication(LPCTSTR lpszUsername, LPCTSTR lpszPassword){
bool bRetval = false;
CString strCookie;
CInternetSession* ApplicationServer = new CInternetSession();
InfuzerServer->GetCookie(www.ApplicationURL.comlogin.jsp ,"CookieName",
strCookie);
return bRetval;
}
PradeepSattikar
Thanks anyway.
Marcelo Shiba
Do you have a stand alone complete sample where the issue can be reproduced
Thanks,
Ayman Shoukry
VC++ Team
Elfeffe
Shiv Kumar
No I don't have a standalone component for you. This is part of a large client application...actually, let me see if I can cook one up for you. Thanks for the attention.
BTW, you guys did a great job on the memory leak detection :)
_Laci_