
What is the function of {{ ?
I'm working with VC++ 4.1 (because that's what the original code was
developed with, and because compiling it with VC6 or .NET yields
executables that behave strangely. Also note that while I consider myself
an expert at C, I am a relative beginner in C++.
Here are three code snippets, the first two from the same file. I know
the first is a destructor, while the second is a method, so I thought
there might be some difference in meaning. I am fairly sure in these two,
the {{ and }} are merely decoration, but I'd like to be sure.
RgnData::~RgnData()
{{
if (mData) free(mData);
Quote:
}}
void
RgnData::SetRect(short index, const RECT& r)
{{
RECT* bounds = &mData->rdh.rcBound;
memcpy(mData->Buffer + (index * sizeof(RECT)), &r, sizeof(RECT));
if ( (bounds->left == 0) &&
(bounds->right == 0) &&
(bounds->top == 0) &&
(bounds->bottom == 0))
*bounds = r;
else
{
if (bounds->left > r.left) bounds->left = r.left;
if (bounds->top > r.top) bounds->top = r.top;
if (bounds->right < r.right) bounds->right = r.right;
if (bounds->bottom < r.bottom) bounds->bottom = r.bottom;
}
Quote:
}}
In the following example, it's my understanding that the {{ is meaningful,
even though within a comment. Thanks in advance.
BEGIN_MESSAGE_MAP(C8PropSheet, CPropertySheet)
//{{AFX_MSG_MAP(C8PropSheet)
// NOTE - the ClassWizard will add and remove mapping macros here.
//}}AFX_MSG_MAP
ON_REGISTERED_MESSAGE(wm_SETCONTROLFOCUS, OnSetCtrlFocus)
END_MESSAGE_MAP()
--
#include <standard.disclaimer>
_
Kevin D Quitt USA 91351-4454 96.37% of all statistics are made up
Per the FCA, this email address may not be added to any commercial mail list