I was trying to build a patcher program which would download files via ftp server. Everything seems to be working fine except i get an error when i complile
Code:
Compiling resources...
Compiling...
StdAfx.cpp
c:\program files\microsoft visual studio\vc98\include\wininet.h(48) : error C2146: syntax error : missing ';' before identifier 'HINTERNET'
c:\program files\microsoft visual studio\vc98\include\wininet.h(48) : fatal error C1004: unexpected end of file found
Error executing cl.exe.
ftptest.exe - 2 error(s), 0 warning(s)
This would seem like an easy error to fix but there is no missing ';' before the identifier and the second error is just part of that i'm guessing.
I was looking around on the internet about this and i found its probly an error with wininet.h not being precompiled. AfxDisp.h is #included in StdAfx.h and it #includes the wininet.h file which has not been compiled yet. I went to the preprocessor command in Project settings under C/C++. I added " ,wininet.h" to the precompiled headers.
That didnt solve my problem so i went into StdAfx.h and added #include wininet.h to the file before afxdisp.h like this...
Code:
...
#include <wininet.h>
#include <afxwin.h> // MFC core and standard components
#include <afxext.h> // MFC extensions
#include <afxdisp.h> // MFC Automation classes
#include <afxdtctl.h> // MFC support for Internet Explorer 4 Common Co
...
That still did not work. Does anyone know what could be the problem i never expected something to be wrong with the msdn library files hehe. If you can help me thanks in advance if not sorry to bother your time.