Article View: borland.public.cppbuilder.migration
Article #131Still not working.
From: Gene
Date: Mon, 07 Jul 2008 01:10
Date: Mon, 07 Jul 2008 01:10
36 lines
1874 bytes
1874 bytes
It doesn't seem to work. The only purpose I have the inline function exported is to test if a function that takes a template class auguement works. I have a couple of that kind of functons in my old BCB6 project, they are ok when I use my old way in BCB6. When I upgrade to BCB2007, all exported functions are ok except those functions that takes tamplate class auguements.
Any further idea, Remy? Thanks a lot!
"Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> wrote:
>
>"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:
<48716d01$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!feeder.erje.net!news.isoc.lu!newsgroups.borland.com!not-for-mailReferences:
<486fa525$1@newsgroups.borland.com> <48706b97@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: "Gene" <shenjige@yahoo.ca> Sender: "Gene" <shenjige@yahoo.ca> Reply-To: "Gene" <shenjige@yahoo.ca> Subject: Still not working. Newsgroups: borland.public.cppbuilder.migration X-User-Info: 116.25.218.235 References: <486fa525$1@newsgroups.borland.com> <48706b97@newsgroups.borland.com> NNTP-Posting-Host: 207.105.83.66 Message-ID: <48716d01$1@newsgroups.borland.com> Date: 6 Jul 2008 18:10:25 -0700 X-Trace: newsgroups.borland.com 1215393025 207.105.83.66 (6 Jul 2008 18:10:25 -0700) Lines: 37 Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!feeder.erje.net!news.isoc.lu!newsgroups.borland.com!not-for-mail