Okay, so I just switched over from Visual C++ (Visual Studios) and hardly any of my programs I made before in Visual Studios will compile in Code::Blocks...
I've had countless errors and problems ranging from header files not being found, all the way to things not working with no real reason to it at all.
Here is my problem atm. I am trying to make my program check if an internet connection is available.
My code:
#include <Windows.h>
#include <string>
#include <wininet.h>
int main(){
InternetCheckConnection("google.com", FLAG_ICC_FORCE_CONNECTION, 0);
}
Normally, there is supposed to be a #pragma here including the wininet.lib but #pragma's are always ignored in C::B so I just included the library itself in the project build properties.
It gives me this error when I try to compile.
error: 'FLAG_ICC_FORCE_CONNECTION' was not declared in this scope|
Funny thing is, FLAG_ICC_FORCE_CONNECTION is the correct parameter, and is also the only parameter for this function... C::B has done nothing but given me problems ever since I downloaded it.. What do I do?