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 2 1241
<uu****@yahoo.com> schrieb im Newsbeitrag
news:11*********************@o13g2000cwo.googlegro ups.com... 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 ##.
## means "concatenate", that is, glue together woithout whitepsace in
between.
HTH,
Gernot
Thanks..One more doubt is
I understood that..
Some places they are using just #CN ...
I understand this is as Converting CN to some data type..
am i right..?
Gernot Frisch wrote: <uu****@yahoo.com> schrieb im Newsbeitrag news:11*********************@o13g2000cwo.googlegro ups.com... 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 ##. ## means "concatenate", that is, glue together woithout whitepsace in
between. HTH, Gernot This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: winlinchu |
last post by:
Hi!
I use Python, and writing some extension modules I think which could
be written an
C compiler, useful only to compile extension modules (I not think an
GCC!!!!), so that the user not have to...
|
by: dracolytch |
last post by:
Alright, this is a controvercial question for my fellow gurus: Why do
we bother with Object-Oriented programming in a web environment?
The web, by nature, is a stateless environment. Web-based...
|
by: Kevin C |
last post by:
I was curious to know what some developers out in the industry are doing when it comes to exposing Data access logic, specifically persistence. This is assuming that your not using an O/R framework...
|
by: David Sawyer |
last post by:
Does anyone know where I can get more detailed info on the
MSFlexGrid Component? I am trying to use it in a program
but the info I have found so far is very little.
|
by: silver360 |
last post by:
Hello,
I'm trying to create a basic Heap manager and i have some question
about new/delete overloading.
The following code give me this output :
>> $./heap
>> registered : 0x804d098
>>...
|
by: Richard Carpenter |
last post by:
I am working on a small project in which I am trying to implement a
data access layer through the use of a project dataset schema. Data
integrity and normalization will be handled through the use...
|
by: ypjofficial |
last post by:
Hello All,
So far I have been reading that in case of a polymorphic class ( having
at least one virtual function in it), the virtual function call get
resolved at run time and during that the...
|
by: Krishanu Debnath |
last post by:
Hello,
I have a call to hash_map::clear() function which takes long time.
someClass::someFunction()
{
// typedef hash_map<name_id, uintMp;
// Mp p;
// assuming proper namespace, hash...
|
by: Milagro |
last post by:
Hello Everyone,
I'm trying to debug someone elses php code. I'm actually a Perl
programmer, with OO experience, but not in php.
The code is supposed to upload a photo from a form and save it...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
by: Shællîpôpï 09 |
last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
| |