Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c++ > #8542

Re: Setting Structure Defaults

From Victor Bazarov <v.bazarov@comcast.invalid>
Newsgroups comp.lang.c++
Subject Re: Setting Structure Defaults
Date 2011-08-07 13:17 -0400
Organization A noiseless patient Spider
Message-ID <j1mhat$qd3$2@dont-email.me> (permalink)
References (1 earlier) <j1k4rr$ujc$1@dont-email.me> <MPG.28a7d6d1917d30d9896c5@news.eternal-september.org> <9a77qdFn1oU1@mid.individual.net> <MPG.28a8687f51a49f469896c6@news.eternal-september.org> <m1ht37p513ttlgfuind0vo1m2trc423cln@4ax.com>

Show all headers | View raw


On 8/7/2011 1:00 PM, Geoff wrote:
> #include<windows.h>  /* for definition of WORD */
> #define LONORM 1 /* application specific constant? */
>
> #define ERLIMIT	5
>
> struct ERMENU
> {
>     std::string title; /* changed from string to std::string */
>     short  xAxis, yAxis;
>     short  titleLen, dataLen;
>     short  linkPrior, linkNext;
>     short  option;
>     WORD   dispAttr;
>     short  erHead, erTail, erCurrent;
> } erMenu[ERLIMIT] =
>     {
>      {"category1", 2, 4, 9, 1, 0, 0, 0, LONORM, 0, 0, 0},
>      {"category2", 2, 5, 9, 1, 0, 0, 0, LONORM, 0, 0, 0},
>      {"category3", 2, 6, 9, 1, 0, 0, 0, LONORM, 0, 0, 0},
>      {"category4", 2, 7, 9, 1, 0, 0, 0, LONORM, 0, 0, 0},
>      {"category5", 2, 8, 9, 1, 0, 0, 0, LONORM, 0, 0, 0}
>     };
>
> Works fine in VS2010.

No shit.  Now try it with VS v6.0...

V
-- 
I do not respond to top-posted replies, please don't ask

Back to comp.lang.c++ | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Setting Structure Defaults mrc2323@cox.net (Mike Copeland) - 2011-08-06 11:33 -0700
  Re: Setting Structure Defaults Victor Bazarov <v.bazarov@comcast.invalid> - 2011-08-06 15:31 -0400
    Re: Setting Structure Defaults mrc2323@cox.net (Mike Copeland) - 2011-08-06 22:55 -0700
      Re: Setting Structure Defaults "Balog Pal" <pasa@lib.hu> - 2011-08-07 08:46 +0200
      Re: Setting Structure Defaults "Bo Persson" <bop@gmb.dk> - 2011-08-07 12:30 +0200
        Re: Setting Structure Defaults mrc2323@cox.net (Mike Copeland) - 2011-08-07 09:17 -0700
          Re: Setting Structure Defaults Geoff <geoff@invalid.invalid> - 2011-08-07 10:00 -0700
            Re: Setting Structure Defaults Victor Bazarov <v.bazarov@comcast.invalid> - 2011-08-07 13:17 -0400
          Re: Setting Structure Defaults Victor Bazarov <v.bazarov@comcast.invalid> - 2011-08-07 13:16 -0400

csiph-web