void initializeTCP() {
    WSADATA wsaData;

    if (WSAStartup(MAKEWORD(2, 2), &wsaData) != 0) {
        paintStatus("Error: WSAStartup");
        exit(1);
    }
}
Example #2
0
// Paint the progress bar in response to a paint message
void
ProgressBar::paint( CDC &dc )
{
    paintBackground( dc );
    paintStatus( dc );
}