Article View: borland.public.cppbuilder.nativeapi
Article #6954Re: float MyAdd(float A,float B); int MyAdd(int A, int B); both in one DLL
From: Remy Lebeau (TeamB)
Date: Sat, 05 Jul 2003 07:49
Date: Sat, 05 Jul 2003 07:49
18 lines
1922 bytes
1922 bytes
"Miem Chan" <miemchan@yahoo.com> wrote in message news:3f06547e@newsgroups.borland.com... > The problem (and my question) is how we can put > both of these MyAdd functions in to a single DLL > and expect to call proper MyAdd function depending > on the parameters passed ? You can't. DLLs don't support function overloading at all. You have to name each function differently. Gambit P.S. please do not cross-post. It is against Borland's newsgroup guidelines (http://www.borland.com/newsgroups). Only post questions to the single most appropriate group.
Technical Details
Message-ID:
<3f0681f5$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-01!sn-xit-08!supernews.com!news-out.visi.com!petbe.visi.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3f06547e@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,81e91db7883b82d8 X-Google-Attributes: gid10cc67,public X-Google-Thread: 102541,81e91db7883b82d8 X-Google-Attributes: gid102541,public X-Google-Thread: 10db1e,81e91db7883b82d8 X-Google-Attributes: gid10db1e,public X-Google-ArrivalTime: 2003-07-05 01:09:05 PST From: "Remy Lebeau \(TeamB\)" <gambit47@yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi,borland.public.cppbuilder.oodesign,borland.public.cppbuilder.students References: <3f06547e@newsgroups.borland.com> Subject: Re: float MyAdd(float A,float B); int MyAdd(int A, int B); both in one DLL Date: Sat, 5 Jul 2003 00:49:35 -0700 Lines: 20 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 NNTP-Posting-Host: 207.175.226.26 Message-ID: <3f0681f5$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1057391093 207.175.226.26 (5 Jul 2003 00:44:53 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-01!sn-xit-08!supernews.com!news-out.visi.com!petbe.visi.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail