Saturday, February 28, 2009

comp.lang.c++ - 24 new messages in 10 topics - digest

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

comp.lang.c++@googlegroups.com

Today's topics:

* macro - 4 messages, 4 authors
http://groups.google.com/group/comp.lang.c++/t/84731ce3c14b7152?hl=en
* Free Shipping NFL jerseys 16USD NHL Jerseys 34USD at www.guoshijerseys.com
Paypal payment - 1 messages, 1 author
http://groups.google.com/group/comp.lang.c++/t/e6a6092bc1cfc545?hl=en
* smart pointer with custom deconstruction? - 2 messages, 2 authors
http://groups.google.com/group/comp.lang.c++/t/eab403107607f6a4?hl=en
* networking libraries - 4 messages, 3 authors
http://groups.google.com/group/comp.lang.c++/t/956adbc777247eed?hl=en
* Pass by pointer - segmentation fault - 2 messages, 1 author
http://groups.google.com/group/comp.lang.c++/t/8599ee7e5e13f89a?hl=en
* small template problem - 4 messages, 3 authors
http://groups.google.com/group/comp.lang.c++/t/e314a2e29deb61eb?hl=en
* ALGORITHM - 1 messages, 1 author
http://groups.google.com/group/comp.lang.c++/t/15dd5e0193a57f9f?hl=en
* Singletons / classes with only one member - 4 messages, 3 authors
http://groups.google.com/group/comp.lang.c++/t/05ca01b012ed3ee0?hl=en
* Accessing & Updating an STL list - 1 messages, 1 author
http://groups.google.com/group/comp.lang.c++/t/484fb30bdd8b6c0b?hl=en
* std::sort causes segfault when sorting class arrays - 1 messages, 1 author
http://groups.google.com/group/comp.lang.c++/t/67d1aa830ced63bb?hl=en

==============================================================================
TOPIC: macro
http://groups.google.com/group/comp.lang.c++/t/84731ce3c14b7152?hl=en
==============================================================================

== 1 of 4 ==
Date: Fri, Feb 27 2009 11:47 pm
From: "Fernando A. Gómez F."


Sam wrote:
> asmcad writes:
>
>> i'm using wxWidget and i saw same strange macro:
>>
>> # define WXDLLIMPEXP_CL
>>
>> class WXDLLIMPEXP_CL classname {
>> ....
>> ..
>>
>> why they do this? what does it mean? does anybody write code like
>> this?
>
> Some technically flawed operating systems may require usage of some
> non-standard keywords in order to define certain attributes of classes
> that must be specified in order to get the wanted results.
>
> Your library's configuration script will install the appropriate
> definition of this macro, when your library is installed on that
> particular operating system.
>

In Visual C++, you usually do something like this:

#ifdef MYDLL_EXPORTS
#define MYDLL_API __declspec(dllexport)
#else
#define MYDLL_API __declspec(dllimport)

No comments: