fixed declaration of NetConnectDlgProc
exception -> runtime_error, exception's constructor doesn't take parameters
non-standard itoa replaced with standard snprintf