[Dev-C++] Statement Help/explaination
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Michael D. S. <for...@hi...> - 2003-10-17 05:14:03
|
Can anyone, please, help me explain this statement?
I know I don't know C, but most of it at least kind of looks like familiar
things from other languages. I don't get it. It doesn't even look like a
valid statement. I have no idea where to start to look it up. It's not an
'if' or a 'print' or a loop, or a math statement, or anything you could
look up. It's just there and the compiler says it's a parse error.
RASCONNSTATUS rasConnStatus;
The rest of the subroutine is below if that helps but my main focus at the
moment is the purpose of this statement.
BTW, I tried sticking an = in there and that blew up even worse :)
ms
void wd_hangup (HRASCONN x_conn)
{
RasHangUp (x_conn);
// Wait for a second before checking to see if it's been disconnected.
//
Sleep (1000);
// Keep checking in a loop until the connection is no longer valid.
//
RASCONNSTATUS rasConnStatus;
rasConnStatus.dwSize = sizeof (RASCONNSTATUS);
while (RasGetConnectStatus (x_conn, &rasConnStatus) !=
ERROR_INVALID_HANDLE)
{
// Wait a bit before checking again.
//
Sleep (250);
}
|