So here I have test.cpp:
#include <winsock2.h>
#include <stdio.h>
#include <windows.h>
#include <wininet.h>
#include <lm.h>
BOOL kthx = TRUE;
if (kthx)
{
uninstall();
WSACleanup();
exit(0);
}
void uninstall(void)
{
//something long
}
When I click build, I get the following errors:
error C2059: syntax error: 'if'
error C2059: syntax error: missing ';' before '{'
error C2059: '{': missing function header (old-style formal list?)
Question 2: I'm wondering how works the GUI (or graphc interface).
With visual basic, there's a nice window that pops out with buttons, form options, labels, etc. Where is the similar for C++?
#include <winsock2.h>
#include <stdio.h>
#include <windows.h>
#include <wininet.h>
#include <lm.h>
BOOL kthx = TRUE;
if (kthx)
{
uninstall();
WSACleanup();
exit(0);
}
void uninstall(void)
{
//something long
}
When I click build, I get the following errors:
error C2059: syntax error: 'if'
error C2059: syntax error: missing ';' before '{'
error C2059: '{': missing function header (old-style formal list?)
Question 2: I'm wondering how works the GUI (or graphc interface).
With visual basic, there's a nice window that pops out with buttons, form options, labels, etc. Where is the similar for C++?