Results 1 to 7 of 7

Thread: defining new types for ULONG UINT...

  1. #1

    Thread Starter
    Frenzied Member aewarnick's Avatar
    Join Date
    Dec 2002
    Posts
    1,037

    defining new types for ULONG UINT...

    Is this a bad idea?

    typedef unsigned short ushort;
    typedef unsigned long ulong;
    typedef unsigned int uint;
    typedef unsigned char byte;
    typedef unsigned double udouble;

  2. #2
    Fanatic Member twanvl's Avatar
    Join Date
    Dec 2001
    Posts
    771
    No, it's a fine idea, but you should put these definitions in a visible place, for example a separate include file.

  3. #3

    Thread Starter
    Frenzied Member aewarnick's Avatar
    Join Date
    Dec 2002
    Posts
    1,037
    Why doesn't MS do put in in their headers and highlights those as keywords?

  4. #4
    Fanatic Member twanvl's Avatar
    Join Date
    Dec 2001
    Posts
    771
    The C(++) standard is unsigned something, usomething keywords are not really needed, you can't make everything a keyword.
    By the way, you can make MSVC highlight your own keywords by editting vcdir/common/msdev98/bin/usetype.dat (in vc6, vc7 probably has a similair file)

  5. #5

    Thread Starter
    Frenzied Member aewarnick's Avatar
    Join Date
    Dec 2002
    Posts
    1,037
    Thanks. That file is no-where to be found. I have VS 2002.

  6. #6
    Fanatic Member twanvl's Avatar
    Join Date
    Dec 2001
    Posts
    771
    I found this

  7. #7

    Thread Starter
    Frenzied Member aewarnick's Avatar
    Join Date
    Dec 2002
    Posts
    1,037
    Looks good to me. Thanks! I'll give it a try.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width