Wednesday, June 3, 2009

comp.lang.c++ - 15 new messages in 11 topics - digest

comp.lang.c++
http://groups.google.com/group/comp.lang.c++?hl=en

comp.lang.c++@googlegroups.com

Today's topics:

* error: expected unqualified-id before 'namespace' - 1 messages, 1 author
http://groups.google.com/group/comp.lang.c++/t/9f6a86b57516c3f4?hl=en
* Questions about the behavior for argv(0) - 3 messages, 3 authors
http://groups.google.com/group/comp.lang.c++/t/b389eb025fc6bf1f?hl=en
* Making Serious Money Online - 1 messages, 1 author
http://groups.google.com/group/comp.lang.c++/t/1299239103e393b1?hl=en
* Love love love - 1 messages, 1 author
http://groups.google.com/group/comp.lang.c++/t/268b930f9ccf80cc?hl=en
* Andrei Alexanderescu ????? - 1 messages, 1 author
http://groups.google.com/group/comp.lang.c++/t/240a7d64aeabc2e1?hl=en
* Not lately we have known each other - 2 messages, 1 author
http://groups.google.com/group/comp.lang.c++/t/2d025b6eb99d113a?hl=en
* Access violation with VariantClear() - 2 messages, 2 authors
http://groups.google.com/group/comp.lang.c++/t/22276350142e8128?hl=en
* Cheaper Coogi Mens Jeans - discount - 1 messages, 1 author
http://groups.google.com/group/comp.lang.c++/t/8de24b5e97500144?hl=en
* ◆◆ All kinds of brand shoes Jordan,Nike,D&G,Dior,LV,etc.(paypal payment)(www.
guomeitrade.com ) - 1 messages, 1 author
http://groups.google.com/group/comp.lang.c++/t/ad17bb66b2860583?hl=en
* static polymorphism --- How it actually Happens ? - 1 messages, 1 author
http://groups.google.com/group/comp.lang.c++/t/bdc4a73999d16032?hl=en
* How can I send a file through socket? - 1 messages, 1 author
http://groups.google.com/group/comp.lang.c++/t/27ac5829b78bc4d5?hl=en

==============================================================================
TOPIC: error: expected unqualified-id before 'namespace'
http://groups.google.com/group/comp.lang.c++/t/9f6a86b57516c3f4?hl=en
==============================================================================

== 1 of 1 ==
Date: Tues, Jun 2 2009 4:02 pm
From: Zachary Turner


On Jun 2, 11:30 am, tt <t...@asddd.com> wrote:
> Martijn Mulder wrote:
> >> Yes it does. This is the content from the Makefile that is generated with
> >> cmake:
>
> >> # CMAKE generated file: DO NOT EDIT!
>
> > DO NOT use makefiles. They make your life miserable. With a little work you
> > can use scripts and response files that give you all the flexibility you
> > need. I don't know for Ubuntu, but on Windows (yes, Microsoft) I can simply
> > type
>
> > C:\cl.exe bob.cpp
>
> > and your program compiles without errors
>
> Thats not really an option I need to build it using cmake. I just don't
> understand what it is in the Makefile that gives me the above error. If
> I run the same file with:
>
> g++ test.h -o test
>
> or
>
> c++ test.h -o test
>
> there is no error. The Makefile generated with cmake is using c++ and if
> I specify g++ it automatically changes to c++. But I don't think thats
> the issue.

First of all the command you've just typed above is bogus. You
shouldn't compile .h files, you should compile .cpp files or .c
files. Assuming you have a file named test.cpp then you type

g++ test.cpp -o test

test.cpp would then have a line

#include "test.h"

at the top.

Secondly, assuming the problem really is with CMake and not because
you're trying to compile a header file, then I'm not sure anyone here
can help. I for one know nothing about CMake.

==============================================================================
TOPIC: Questions about the behavior for argv(0)
http://groups.google.com/group/comp.lang.c++/t/b389eb025fc6bf1f?hl=en
==============================================================================

== 1 of 3 ==
Date: Tues, Jun 2 2009 4:30 pm
From: C Guy


The function signature for main is:

int main (int argc, char *argv[], char **envp)

argc tells you how many argv[] there are.

argv[0] is the name of the executable - the name of the executable
containing main().

Under Win-XP, I've noticed that argv[0] does not include the full
filespec when invoked within a command shell. By filespec, I mean the
full path and the full name of the program file - including suffix (ie -
.exe).

What I am seeing in argv(0) is just the file stem - as typed by the
user.

Eg, from a command shell, if I invoke "example" from c:\hello\there\, I
am seeing argv[0] return simply "example". In other words, exactly what
the user typed, not the full and complete filespec.

If I perform the same command in, say, a command prompt in win98,
argv(0) returns "c:\hello\there\example.exe" (the full and complete
filespec).

Maybe I'm dreaming, but I could swear that once upon a time that from a
command prompt on XP that I would see the same thing as I see on win98.

When launched from explorer (under XP) argv(0) seems to behave as I
expect.

Did XP always exhibit this behavior?

How does NT and 2K behave in this regard?


== 2 of 3 ==
Date: Tues, Jun 2 2009 4:51 pm
From: Keith Thompson


C Guy <C@Guy.com> writes:
> The function signature for main is:
>
> int main (int argc, char *argv[], char **envp)

The envp parameter is non-standard.

> argc tells you how many argv[] there are.

Close enough. argv[argc] is a null pointer.

> argv[0] is the name of the executable - the name of the executable
> containing main().

All the C standard requires is that it "represents the program name".
In more detail:

If the value of argc is greater than zero, the string pointed to
by argv[0] represents the program name; argv[0][0] shall be the
null character if the program name is not available from the host
environment. If the value of argc is greater than one, the strings
pointed to by argv[1] through argv[argc-1] represent the program
parameters.

Both behaviors you describe are consistent with this requirement.

> Under Win-XP, I've noticed that argv[0] does not include the full
> filespec when invoked within a command shell.
[...]
> When launched from explorer (under XP) argv(0) seems to behave as I
> expect.
>
> Did XP always exhibit this behavior?
>
> How does NT and 2K behave in this regard?

That's a Windows question, not a C (or C++) question. If you don't
get an answer from microsoft.public.vc.mfc, try
comp.os.ms-windows.programmer.win32.

Followups redirected, dropping comp.lang.c and comp.lang.c++.

--
Keith Thompson (The_Other_Keith) kst-u@mib.org <http://www.ghoti.net/~kst>
Nokia
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"


== 3 of 3 ==
Date: Tues, Jun 2 2009 5:03 pm
From: gordon@hammy.burditt.org (Gordon Burditt)


>The function signature for main is:
>
> int main (int argc, char *argv[], char **envp)
>
>argc tells you how many argv[] there are.
>
>argv[0] is the name of the executable - the name of the executable
>containing main().

argv[0] does not have to be a full path name nor even a file name.
It could be the name of the product as it appeared on an invoice
to purchase it, including a part number.

In spite of the C standard, in some operating systems it's an
arbitrary string supplied by the (possibly malicious) caller that
may have no necessary resemblance to anything except an attempted
security breach.

The main use for argv[0] is for the executable to use it as its own
name in an error message. If it's a script running or a program
invokes others, it's useful to know which program is reporting the
error.

>Under Win-XP, I've noticed that argv[0] does not include the full
>full path and the full name of the program file - including suffix (ie -
>.exe).
>
>What I am seeing in argv(0) is just the file stem - as typed by the
>user.

This is not uncommon. Sometimes an executable (more commonly on
UNIX) has different names (due to symbolic or hard links, or copies
of the file) and it looks at argv[0] to decide which behavior to
use based on that. Mostly this was used if disk space was extremely
tight, and with terabyte drives available for under $200, that's
not true any more on desktops and servers.

>Eg, from a command shell, if I invoke "example" from c:\hello\there\, I
>am seeing argv[0] return simply "example". In other words, exactly what
>the user typed, not the full and complete filespec.

Different shells do different things. Better learn to live with it.

>If I perform the same command in, say, a command prompt in win98,
>argv(0) returns "c:\hello\there\example.exe" (the full and complete
>filespec).
>
>Maybe I'm dreaming, but I could swear that once upon a time that from a
>command prompt on XP that I would see the same thing as I see on win98.
>
>When launched from explorer (under XP) argv(0) seems to behave as I
>expect.

You need to expect a rather wide range of behavior. Once Microsoft
releases a command interpreter with a particular behavior, you'll
never be able to get rid of it.

>Did XP always exhibit this behavior?
>
>How does NT and 2K behave in this regard?

==============================================================================
TOPIC: Making Serious Money Online
http://groups.google.com/group/comp.lang.c++/t/1299239103e393b1?hl=en
==============================================================================

== 1 of 1 ==
Date: Tues, Jun 2 2009 7:50 pm
From: imuaplease@gmail.com


On Jun 3, 12:57 am, lizzy <lizmi...@aol.com> wrote:
> On Tue, 6/2/09, Ocie Lewis <olewis10...@yahoo.com> wrote:
>
> From: Ocie Lewis <olewis10...@yahoo.com>
> Subject: Re: Making Serious Money Online
>
> Date: Tuesday June 2, 2009, 1:53 PM
>
> ---
>
>   ~~~~, I Want To Personally Introduce You To An Internet Millionaire!
>
> Hi ~~~,
> {Ocie} here with an major
> announcement...http://www.MyPartnersInProfit.com/bootcamp/?id=10286
>
> For 25 people, this will be the most important
> e-mail you ever receive. (I hope you're one of them!)
>
> Because my new partner and I are looking for 25 people who are ready
> to take part in the greatest Internet marketing joint venture of all
> time.
>
> This joint venture is open to anyone.  Even if
> you have a business already.
>
> Here's the story:http://www.MyPartnersInProfit.com/bootcamp/?id=10286
>
> But here's the catch: In order to make this happen,
> We need to be sure that we choose the 25 people most
> driven to succeed and responsible people. So if you're
> looking for someone to hand you vacations and cars on a
> silver platter, then you can stop reading right now.
>
> However, if you have a sincere interest in building
> a REAL home business based on something that you
> can get passionate about... something you can truly
> dedicate yourself to (at least 10 hours per week)
> for the next twelve months, then we want to hear from you.
>
> Because to be one of the 25 people accepted, you don't need an
> existing online business (but you can). You don't need a technical
> background. You don't even need to have any experience. Remember you
> are just going to be sending out movies! (we'll work with you on ALL
> of these things!)
>
> What you *do* need is a burning desire to succeed
> and the ability to be coachable and believe it's possible.
>
> If you want to make an extra $100,000 a year working
> part time, so that you or your spouse can stay home
> with the kids, let's make it happen! If you want to
> increase the profits of an existing online business,
> so that you make an extra $50,000 - $100,000 per year,
> we can help you get there, too!
>
> But please note that because of the huge time
> commitment this kind of one-on-one mentoring will
> take from me, I can only accept 25 people
> at this time and I'm expecting to get literally hundreds
> of applications.
>
> So if this sounds like something that might interest
> you, we highly recommend that you go to the link below
> and watch the short video of my new partner as
> he explain everything right away! Then just complete the
> application form on the next page.
>
> ...We are going to be taking applications first come,
> first served as they get accepted.
>
> Don't wait click below or just copy and paste the link into
> your browser....
>
> http://www.MyPartnersInProfit.com/bootcamp/?id-10286
>
> To Your Success & A New Partnership,
>
> {From Ocie }
>
> P.S. Keep in mind, we expect these 25 new spots to be
> filled extremely fast... Likely in the next few days.
> So if you would like to participate, we highly recommend
> that you go right now and watch our video, then fill out
> the form to get a copy of the movie for yourself, this
> will notify us that you would like us to call you and start
> working together.
>
> http://www.MyPartnersInProfit.com/bootcamp/?id=10286

That means marry my family members to get more fame and online
cheating techniques
You can steal and rob people's accounts and money and everything that
has webonline related functions

==============================================================================
TOPIC: Love love love
http://groups.google.com/group/comp.lang.c++/t/268b930f9ccf80cc?hl=en
==============================================================================

== 1 of 1 ==
Date: Tues, Jun 2 2009 7:53 pm
From: imuaplease@gmail.com


Do you love a legless duck that spread rumors and is an arse sucker ?
They say I do

==============================================================================
TOPIC: Andrei Alexanderescu ?????
http://groups.google.com/group/comp.lang.c++/t/240a7d64aeabc2e1?hl=en
==============================================================================

== 1 of 1 ==
Date: Tues, Jun 2 2009 7:57 pm
From: imuaplease@gmail.com


On Apr 12, 5:33 pm, imuaple...@gmail.com wrote:
> On Apr 12, 5:28 pm, imuaple...@gmail.com wrote:
>
>
>
>
>
> > Where is he now ?
> > I have not heard anything from him since June 2007
>
> > Is he happy or sad ?
> > Was he married or not ?
> > Who did he marry ?
>
> > Are they happy ?
>
> > What job is he doing ?
>
> > I have a lot of questions for him. Be sure this is a public section of
> > news on the Internet
> > Don't care if this should be private. It's useless.
>
> > No matter how I am treated, I have discovered that
>
> > 1.they live in big houses
> > 2.and they have many houses both in the US and in Vietnam
> > 3.they have in hands decoders to generate money
> > 4.they can generate funds worldwide
>
> > Do you believe in this big mouth ?
>
> > You should not worry about true or false love. In life that needs
> > dynamic changes, only in places of 3rd world countries like mine there
> > will be true love (in your world you would name stupid or farming
> > love). Don't be sad about "Love me for a reason, let the reason
> > be .... whatever you like"
>
> > You will have a court to play tennis on. I hope to hear from you soon
> > on google !
>
> Perhaps only I am out of game after a long fuck by the hosting family
> online
> MS team support but I thought you were one too
>
> they really rocked after all
> She could passed me by without a single move of the eyes due to worries- Hide quoted text -
>
> - Show quoted text -

That is smart Moon Bear or Duong Minh Nguyet- A whore of anti-
communism in the US has deleted most of my posts to only leave those
that introduce her relatives in law

How about the business deception over Microsoft

==============================================================================
TOPIC: Not lately we have known each other
http://groups.google.com/group/comp.lang.c++/t/2d025b6eb99d113a?hl=en
==============================================================================

== 1 of 2 ==
Date: Tues, Jun 2 2009 8:07 pm
From: imuaplease@gmail.com


Yes not lately that we discovered to know each other
Long before I was here
And they have always been acting as if they were online gays
They do know I am a man
Why they acted as men loving a manonline ?

If that is not about being male whores to fuck on lonely me
to get my posts for ideas to write articles and books
Then why ?

Reasons ? There is no other reason except that
Because long ago they already were doing this hooking job until the
plan went off as a online bomb by MS/world correspondance warnings


== 2 of 2 ==
Date: Tues, Jun 2 2009 8:12 pm
From: imuaplease@gmail.com


On Jun 3, 10:07 am, imuaple...@gmail.com wrote:
> Yes not lately that we discovered to know each other
> Long before I was here
> And they have always been acting as if they were online gays
> They do know I am a man
> Why they acted as men loving a manonline ?
>
> If that is not about being male whores to fuck on lonely me
> to get my posts for ideas to write articles and books
> Then why ?
>
> Reasons ? There is no other reason except that
> Because long ago they already were doing this hooking job until the
> plan went off as a online bomb by MS/world correspondance warnings

Not only the fathers with humble heights but also their sons.
In these cases like this I am always accepting your laughters on me
But a whore prostitute family is unbearable. Just feel free to laugh
and hit me
But I still raise my voice to go against this seriously abusers/online
fuckers


==============================================================================
TOPIC: Access violation with VariantClear()
http://groups.google.com/group/comp.lang.c++/t/22276350142e8128?hl=en
==============================================================================

== 1 of 2 ==
Date: Tues, Jun 2 2009 8:50 pm
From: LEK


My problem is my product has crash when I ran it over night. Then I
dump call stack and found that it happen at VariantClear function. I
think it is the problem of varaint variable send as parameter to this
function. The dump file tell me that this variable have initialized
before. But I don't know what value store in this variable because I
use vc2003 that it can't monitor a variant variable.

My question is what is the behavior of VariantClear function lead to
this problem?
And how can I prevent this problem before call VariantClear?

Call stack:
0391eb5c 2200e324 04666938 00000000 03f18b90 oleaut32!VariantClear
+0x52
0391eb94 28508ae6 0391ec16 e219652c 403cd758 Dexutil!
CMrvMTVarRange::setFloat+0xb4 [c:\dev\trunk_dex5.1\dll\dexutil\source
\m_mtvarrange.cpp @ 1259]
0391ee34 28509249 0391fbd8 2854fe28 00000007 MrvTsi!
CTsiClientItemBaseImp::FillRow+0x4e6 [c:\dev\trunk_dex5.1\dll\mrvtsi
\tsiclientitembaseimp.cpp @ 741]
0391f0f4 2850635b 0391fbd8 0397da78 039e0818 MrvTsi!
CTsiClientItemBaseImp::DataLoad+0x3e9 [c:\dev\trunk_dex5.1\dll\mrvtsi
\tsiclientitembaseimp.cpp @ 853]
0391fb68 491058e5 01000140 00004002 00000000 MrvTsi!CBGetData+0x103b
[c:\dev\trunk_dex5.1\dll\mrvtsi\tsiclientitembaseimp.cpp @ 260]
0391fc54 49126c1e 00050336 77d4cefd 00000000 TSI500!tsiQueryInterface
+0x3fd0
0391fc64 49122859 00942318 00000000 2850b730 TSI500!tsiQueryInterface
+0x25309
00000000 00000000 00000000 00000000 00000000 TSI500!tsiQueryInterface
+0x20f44

My source code:
INT16 CMrvMTVarRange::setFloat(const XYZ &xyz, FLOAT64 Value)
{
SAFEARRAY_LOCK_FAILS_WITH(M_ERR);

//<PS> Access violation
//EMPTY_ENTRY(pVar, M_ERR);
VARIANT *pVar = getVariantPtr(xyz);
if (!pVar || (VariantClear(pVar) != S_OK))
return M_ERR;
//<PS>

V_VT(pVar) = VT_R8;
V_R8(pVar) = Value;
return M_OK;
}


== 2 of 2 ==
Date: Tues, Jun 2 2009 9:15 pm
From: "Alf P. Steinbach"


* LEK:
[off-topic]
> My problem is my product has crash when I ran it over night. Then I
> dump call stack and found that it happen at VariantClear function. I
> think it is the problem of varaint variable send as parameter to this
> function. The dump file tell me that this variable have initialized
> before. But I don't know what value store in this variable because I
> use vc2003 that it can't monitor a variant variable.
>
> My question is what is the behavior of VariantClear function lead to
> this problem?
> And how can I prevent this problem before call VariantClear?
>
> Call stack:
> 0391eb5c 2200e324 04666938 00000000 03f18b90 oleaut32!VariantClear
> +0x52
> 0391eb94 28508ae6 0391ec16 e219652c 403cd758 Dexutil!
> CMrvMTVarRange::setFloat+0xb4 [c:\dev\trunk_dex5.1\dll\dexutil\source
> \m_mtvarrange.cpp @ 1259]
> 0391ee34 28509249 0391fbd8 2854fe28 00000007 MrvTsi!
> CTsiClientItemBaseImp::FillRow+0x4e6 [c:\dev\trunk_dex5.1\dll\mrvtsi
> \tsiclientitembaseimp.cpp @ 741]
> 0391f0f4 2850635b 0391fbd8 0397da78 039e0818 MrvTsi!
> CTsiClientItemBaseImp::DataLoad+0x3e9 [c:\dev\trunk_dex5.1\dll\mrvtsi
> \tsiclientitembaseimp.cpp @ 853]
> 0391fb68 491058e5 01000140 00004002 00000000 MrvTsi!CBGetData+0x103b
> [c:\dev\trunk_dex5.1\dll\mrvtsi\tsiclientitembaseimp.cpp @ 260]
> 0391fc54 49126c1e 00050336 77d4cefd 00000000 TSI500!tsiQueryInterface
> +0x3fd0
> 0391fc64 49122859 00942318 00000000 2850b730 TSI500!tsiQueryInterface
> +0x25309
> 00000000 00000000 00000000 00000000 00000000 TSI500!tsiQueryInterface
> +0x20f44
>
> My source code:
> INT16 CMrvMTVarRange::setFloat(const XYZ &xyz, FLOAT64 Value)
> {
> SAFEARRAY_LOCK_FAILS_WITH(M_ERR);
>
> //<PS> Access violation
> //EMPTY_ENTRY(pVar, M_ERR);
> VARIANT *pVar = getVariantPtr(xyz);
> if (!pVar || (VariantClear(pVar) != S_OK))
> return M_ERR;
> //<PS>
>
> V_VT(pVar) = VT_R8;
> V_R8(pVar) = Value;
> return M_OK;
> }

Hi. There are two main problems with your posting. The first, very obvious, is
that you're posting about Microsoft technology for C, in a C++ language group,
i.e. your posting is OFF-TOPIC squared. What made you think that this group
could be relevant?

Second, you're including a lot of irrelevant information and omitting the only
relevant information.

Not a problem with the posting, but with the code: setters and getters are bad,
prefixes are bad, cryptic short names like CMrvMt are bad, all uppercase for
non-macros are bad, custom functionality for what you have standard
functionality for is bad, and not the least, writing a 2001-line "Hello, world",
which the kind of code above amounts to, is bad. Think about what your code is
/actually/ achieving. It's most probably next to nothing, then write that.

But presumably you'll get detailed responses about that when you post in an
appropriate group.

Look up this group's FAQ on how to post a question about code that doesn't work,
and also look up the FAQ's suggestions of relevant groups, then post anew there.


Cheers & hth.,

- Alf

--
Due to hosting requirements I need visits to <url: http://alfps.izfree.com/>.
No ads, and there is some C++ stuff! :-) Just going there is good. Linking
to it is even better! Thanks in advance!

==============================================================================
TOPIC: Cheaper Coogi Mens Jeans - discount
http://groups.google.com/group/comp.lang.c++/t/8de24b5e97500144?hl=en
==============================================================================

== 1 of 1 ==
Date: Tues, Jun 2 2009 9:08 pm
From: tanvon19@gmail.com


Our Designer Coogi Mens Jeans are fine quality.
You can check them:
http://www.luxury-fashion.org/static/Apparels/Coogi-Mens-Jeans-36.html
http://www.luxury-fashion.org/static/Apparels/Coogi-Mens-Jeans-35.html

And find more new fashionable apparels please view :
www.luxury-fashion.org

Welcome check our other pages or feel free contact us.
You can find what do you want here!

==============================================================================
TOPIC: ◆◆ All kinds of brand shoes Jordan,Nike,D&G,Dior,LV,etc.(paypal payment)
(www.guomeitrade.com )
http://groups.google.com/group/comp.lang.c++/t/ad17bb66b2860583?hl=en
==============================================================================

== 1 of 1 ==
Date: Wed, Jun 3 2009 12:18 am
From: "www.guomeitrade.com"


◆◆ All kinds of brand shoes Jordan,Nike,D&G,Dior,LV,etc.(paypal
payment)

(www.guomeitrade.com )


Footwear (paypal payment)( www.guomeitrade.com )
Paul Smith shoes
Jordan shoes
Bape shoes
Chanel shoes (paypal payment)( www.guomeitrade.com )
D&G shoes
Dior shoes
ED hardy shoes
Evisu shoes
Fendi shoes (paypal payment)( www.guomeitrade.com )
Gucci shoes `
Hogan shoes (paypal payment)( www.guomeitrade.com )
Lv shoes
Prada shoes (paypal payment)( www.guomeitrade.com )
Tous shoes
Ugg shoes (paypal payment)( www.guomeitrade.com )
Ice cream shoes
Sebago shoes (paypal payment)( www.guomeitrade.com )
Lacoste shoes
Air force one shoes (paypal payment)( www.guomeitrade.com )
TODS shoes
AF shoes


Footwear (paypal payment)( www.guomeitrade.com )
Paul Smith shoes
Jordan shoes
Bape shoes
Chanel shoes (paypal payment)( www.guomeitrade.com )
D&G shoes
Dior shoes
ED hardy shoes
Evisu shoes
Fendi shoes (paypal payment)( www.guomeitrade.com )
Gucci shoes `
Hogan shoes (paypal payment)( www.guomeitrade.com )
Lv shoes
Prada shoes (paypal payment)( www.guomeitrade.com )
Tous shoes
Ugg shoes (paypal payment)( www.guomeitrade.com )
Ice cream shoes
Sebago shoes (paypal payment)( www.guomeitrade.com )
Lacoste shoes
Air force one shoes (paypal payment)( www.guomeitrade.com )
TODS shoes
AF shoes


Footwear (paypal payment)( www.guomeitrade.com )
Paul Smith shoes
Jordan shoes
Bape shoes
Chanel shoes (paypal payment)( www.guomeitrade.com )
D&G shoes
Dior shoes
ED hardy shoes
Evisu shoes
Fendi shoes (paypal payment)( www.guomeitrade.com )
Gucci shoes `
Hogan shoes (paypal payment)( www.guomeitrade.com )
Lv shoes
Prada shoes (paypal payment)( www.guomeitrade.com )
Tous shoes
Ugg shoes (paypal payment)( www.guomeitrade.com )
Ice cream shoes
Sebago shoes (paypal payment)( www.guomeitrade.com )
Lacoste shoes
Air force one shoes (paypal payment)( www.guomeitrade.com )
TODS shoes
AF shoes

Footwear (paypal payment)( www.guomeitrade.com )
Paul Smith shoes
Jordan shoes
Bape shoes
Chanel shoes (paypal payment)( www.guomeitrade.com )
D&G shoes
Dior shoes
ED hardy shoes
Evisu shoes
Fendi shoes (paypal payment)( www.guomeitrade.com )
Gucci shoes `
Hogan shoes (paypal payment)( www.guomeitrade.com )
Lv shoes
Prada shoes (paypal payment)( www.guomeitrade.com )
Tous shoes
Ugg shoes (paypal payment)( www.guomeitrade.com )
Ice cream shoes
Sebago shoes (paypal payment)( www.guomeitrade.com )
Lacoste shoes
Air force one shoes (paypal payment)( www.guomeitrade.com )
TODS shoes
AF shoes

Footwear (paypal payment)( www.guomeitrade.com )
Paul Smith shoes
Jordan shoes
Bape shoes
Chanel shoes (paypal payment)( www.guomeitrade.com )
D&G shoes
Dior shoes
ED hardy shoes
Evisu shoes
Fendi shoes (paypal payment)( www.guomeitrade.com )
Gucci shoes `
Hogan shoes (paypal payment)( www.guomeitrade.com )
Lv shoes
Prada shoes (paypal payment)( www.guomeitrade.com )
Tous shoes
Ugg shoes (paypal payment)( www.guomeitrade.com )
Ice cream shoes
Sebago shoes (paypal payment)( www.guomeitrade.com )
Lacoste shoes
Air force one shoes (paypal payment)( www.guomeitrade.com )
TODS shoes
AF shoes


Footwear (paypal payment)( www.guomeitrade.com )
Paul Smith shoes
Jordan shoes
Bape shoes
Chanel shoes (paypal payment)( www.guomeitrade.com )
D&G shoes
Dior shoes
ED hardy shoes
Evisu shoes
Fendi shoes (paypal payment)( www.guomeitrade.com )
Gucci shoes `
Hogan shoes (paypal payment)( www.guomeitrade.com )
Lv shoes
Prada shoes (paypal payment)( www.guomeitrade.com )
Tous shoes
Ugg shoes (paypal payment)( www.guomeitrade.com )
Ice cream shoes
Sebago shoes (paypal payment)( www.guomeitrade.com )
Lacoste shoes
Air force one shoes (paypal payment)( www.guomeitrade.com )
TODS shoes
AF shoes

==============================================================================
TOPIC: static polymorphism --- How it actually Happens ?
http://groups.google.com/group/comp.lang.c++/t/bdc4a73999d16032?hl=en
==============================================================================

== 1 of 1 ==
Date: Wed, Jun 3 2009 12:19 am
From: Pallav singh


Can anyone explain How it actually Happens ?

polymorphic behaviour needed is invariant and can be determined at
compile time.
Then the Curiously Recurring Template Pattern (CRTP) can be used to
achieve static polymorphism, which is an imitation of polymorphism in
programming code but which is resolved at compile time and thus does
away with run-time virtual-table lookups.

template <class Derived>
struct base
{
void interface()
{
// ...
static_cast<Derived*>(this)->implementation();
// ...
}
};

struct derived : base<derived>
{
void implementation();
};

==============================================================================
TOPIC: How can I send a file through socket?
http://groups.google.com/group/comp.lang.c++/t/27ac5829b78bc4d5?hl=en
==============================================================================

== 1 of 1 ==
Date: Wed, Jun 3 2009 12:25 am
From: James Kanze


On Jun 2, 8:33 pm, Paavo Helde <pa...@nospam.please.ee> wrote:
> James Kanze <james.ka...@gmail.com> kirjutas:

> > next. (A professional program will usually use a pool of
> > buffers and non-blocking reads, but that requires some system
> > dependent code.)

> Just for curiosity: if a program uses mmap() or equivalent to
> map the file (or parts to it) into memory and use it from
> there without asynchronous IO, would it make it less
> professional, in your opinion?

It depends on the context. If it was a pure copy program,
probably, since that would limit the size of the file being
copied, and probably run slower as well (although that depends
on the OS). But very few people are writing pure copy
programs---they were generally written a long time ago. For a
lot of uses, mmap is a very good solution.

--
James Kanze (GABI Software) email:james.kanze@gmail.com
Conseils en informatique orientée objet/
Beratung in objektorientierter Datenverarbeitung
9 place Sémard, 78210 St.-Cyr-l'École, France, +33 (0)1 30 23 00 34


==============================================================================

You received this message because you are subscribed to the Google Groups "comp.lang.c++"
group.

To post to this group, visit http://groups.google.com/group/comp.lang.c++?hl=en

To unsubscribe from this group, send email to comp.lang.c+++unsubscribe@googlegroups.com

To change the way you get mail from this group, visit:
http://groups.google.com/group/comp.lang.c++/subscribe?hl=en

To report abuse, send email explaining the problem to abuse@googlegroups.com

==============================================================================
Google Groups: http://groups.google.com/?hl=en

No comments: