U
uuk007
Hi,
I am very new to C/C++ Programming...
Please let me explain what the following code will do.
#define Check(CN,VC) \
static void CN ## _save(WSDserialize*,void* ){} \
class CN ## _init \
{ \
public: \
CN ## _init() \
{ \
WSCbase::setCreateHandler(#CN, CN::createInstance); \
} \
~CN ## _init() \
{
WSCbase::setCreateHandler(#CN, NULL); \
} \
}; \
For this they are passing two class name as follow
Check(One,Two)
In my directory i have both One.cpp and Two.cpp
I am not aware of ##.
Regards
Udhaya
I am very new to C/C++ Programming...
Please let me explain what the following code will do.
#define Check(CN,VC) \
static void CN ## _save(WSDserialize*,void* ){} \
class CN ## _init \
{ \
public: \
CN ## _init() \
{ \
WSCbase::setCreateHandler(#CN, CN::createInstance); \
} \
~CN ## _init() \
{
WSCbase::setCreateHandler(#CN, NULL); \
} \
}; \
For this they are passing two class name as follow
Check(One,Two)
In my directory i have both One.cpp and Two.cpp
I am not aware of ##.
Regards
Udhaya