Article View: borland.public.cppbuilder.nativeapi
Article #11227Re: Run Time Dynamic linking
From: Ed Mulroy [TeamB]
Date: Fri, 20 Feb 2004 14:30
Date: Fri, 20 Feb 2004 14:30
21 lines
1933 bytes
1933 bytes
Casting an lvalue may be uncommon but I do not think it is a non-standard extension. Except for the case of GetProcAddress I think it is usually uglier and more difficult to understand than other ways of doing things so is best avoided. I think there must have been some other reason that you had to change your GetProcAdddress calls when using VC. Casting to FARPROC on the left is not uncommon in MS code. If I remember correctly, I first saw it in use in OS/2 code when using an MS compiler. . Ed > Andrue Cope wrote in message > news:p8al49eo5xi$.1rbxmasbh351g.dlg@40tude.net... > > > Therefore I prefer the simpler method of > > casting on the left. > > I thought this was a non-standard extension? IIRC when > we started using our DLL from VC applications we had > to change all our calls to GetProcAddress().
Technical Details
Message-ID:
<40361a16$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<4034d732$1@newsgroups.borland.com> <4034e538$1@newsgroups.borland.com> <4034e949$1@newsgroups.borland.com> <40350424$1@newsgroups.borland.com> <p8al49eo5xi$.1rbxmasbh351g.dlg@40tude.net>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,c9838237a73aa85e X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2004-02-20 06:40:23 PST From: "Ed Mulroy [TeamB]" <dont_email_me@bitbuc.ket> Newsgroups: borland.public.cppbuilder.nativeapi References: <4034d732$1@newsgroups.borland.com> <4034e538$1@newsgroups.borland.com> <4034e949$1@newsgroups.borland.com> <40350424$1@newsgroups.borland.com> <p8al49eo5xi$.1rbxmasbh351g.dlg@40tude.net> Subject: Re: Run Time Dynamic linking Date: Fri, 20 Feb 2004 09:30:22 -0500 Lines: 23 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: 24.74.175.102 Message-ID: <40361a16$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1077287446 24.74.175.102 (20 Feb 2004 06:30:46 -0800) X-Authenticated-User: edmulroy Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail