Re: global structs


[ Follow Ups ] [ Post Followup ] [ CS1044 Web Discussion Board ] [ FAQ ]

Posted by William D McQuain on November 27, 2001 at 15:49:36:

In Reply to: global structs posted by rich on November 27, 2001 at 15:30:18:

: are we supposed to declare structs globally? otherwise its not working....if we're not supposed to do this can someone help me as to how we are supposed to do it?

: thanks


When you declare something like:

struct Foo {
. . .
};

that's declaring a TYPE, not a variable. Type declarations almost always have to be global.

Of course, if you declared:

Foo Bar;

that's declaring a VARIABLE of type Foo and that had better not be global!



Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

Comments:

Optional Link URL:
Link Title:
Optional Image URL:


[ Follow Ups ] [ Post Followup ] [ CS1044 Web Discussion Board ] [ FAQ ]