Re: [Dev-C++] Statement Help/explaination
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Per W. <pw...@ia...> - 2003-10-17 06:22:07
|
It's a variable declaration, just as
int my_integer;
Note that in C++ you can place variable declarations just about
everywhere, while a C compiler only want them at start of a block.
You must make sure that you are including the file where RASCONNSTATUS is
declared.
/Per W
On Thu, 16 Oct 2003, Michael D. Smith wrote:
>
> 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);
> }
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: SF.net Giveback Program.
> SourceForge.net hosts over 70,000 Open Source Projects.
> See the people who have HELPED US provide better services:
> Click here: http://sourceforge.net/supporters.php
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
|