473,320 Members | 1,900 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

## _delete

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

Jul 23 '05 #1
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
Jul 23 '05 #2
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


Jul 23 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
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...
14
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...
5
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...
2
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.
3
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 >>...
0
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...
11
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...
19
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...
3
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...
0
isladogs
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...
0
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...
0
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...
0
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...
1
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)...
0
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...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
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....
0
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.