Results 1 to 4 of 4

Thread: Message crackers and sharing variables

  1. #1

    Thread Starter
    Lively Member
    Join Date
    May 2002
    Location
    Oregon
    Posts
    64

    Message crackers and sharing variables

    I was reading up about message crackers and was wondering how do I share variables between the messages. Global variables?

  2. #2
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    Message crackers?
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  3. #3

    Thread Starter
    Lively Member
    Join Date
    May 2002
    Location
    Oregon
    Posts
    64
    Yeah, I was reading about them in Programming Applications for Microsoft Windows. and I think I saw something about them on winprog.org. But they're a set of macros which lets you break each message down into seperate procedures and make your code easier to look at in theory. They're all defined in windowsx.h.

  4. #4
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    Aahh.

    Yes, the way those macros are written global variables seem to be the only way. Which is why I don't like them, and why an object-oriented approach is better.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

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