#define....
- From: "Robby" <Robby@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 21 Jul 2005 17:40:02 -0700
Hi,
I am starting out in programming embeded VC++ for embeded solutions.
I am seeing this in many example programs of the "Programming Microsoft
Windows CE .NET" book where the following define statement appears at the top
of their header file examples.
#define dim(x) (sizeof(x) / sizeof(x[0]))
I am trying to understand what this line has to do with the rest of the
code. If anyone has this book (Isbn# 0-7356-1884-4) the ex. starts on P.18.
The way I see this is that we are dividing the size of x by the size of x[0]
and defining this by Dim(x). IM LOST!
ANYONE PLEASE!!!!!
Robert
--
Best regards
Robert
.
- Follow-Ups:
- Re: #define....
- From: master
- Re: #define....
- From: Wolfgang Rolke
- Re: #define....
- From: remco
- Re: #define....
- Prev by Date: Re: How can eMbedded Visual C++ 4.0 be made to assemble?
- Next by Date: Re: #define....
- Previous by thread: big bug with exception handling with EVC 4.0 sp4 and the ARMv4 compiler.
- Next by thread: Re: #define....
- Index(es):
Relevant Pages
|
Loading