🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.migration
Article #130

Re: Dll problem in CBC2007.

#130
From: Remy Lebeau (TeamB)
Date: Sun, 06 Jul 2008 06:46
26 lines
1461 bytes
"Gene" <shenjige@yahoo.ca> wrote in message 
news:486fa525$1@newsgroups.borland.com...

> #ifdef __BUILDING_DLL
>  #define __EXPORT_TYPE __export
> #else
>  #define __EXPORT_TYPE __import
> #endif

Use ___declspec() instead:

    #ifdef __BUILDING_DLL
        #define __EXPORT_TYPE __declspec(dllexport)
    #else
        #define __EXPORT_TYPE __declspec(dllimport)
    #endif

> template <class T>
> void __EXPORT_TYPE ClearContainer(T& x) { T y; y.swap(x); };

Why are you trying to export an inlined template function?  That is not 
necessary.


Gambit 
Technical Details
Message-ID: <48706b97@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!news.glorb.com!feeder.erje.net!news.isoc.lu!newsgroups.borland.com!not-for-mail
References: <486fa525$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 110f51,ff6960108b83e27b
X-Google-Attributes: gid110f51,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.migration
References: <486fa525$1@newsgroups.borland.com>
Subject: Re: Dll problem in CBC2007.
Date: Sat, 5 Jul 2008 23:46:00 -0700
Lines: 28
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 76.93.113.211
Message-ID: <48706b97@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1215327127 76.93.113.211 (5 Jul 2008 23:52:07 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!news.glorb.com!feeder.erje.net!news.isoc.lu!newsgroups.borland.com!not-for-mail