Article View: borland.public.cppbuilder.nativeapi
Article #8190Re: Is it possible to use Wininet functions WITHOUT LINKING the Wininet.lib ??
From: Bob Gonder
Date: Sun, 14 Nov 2004 17:33
Date: Sun, 14 Nov 2004 17:33
24 lines
2284 bytes
2284 bytes
Bob Gonder wrote: >But, on a lark, I just re-linked my app with delay-load of wininet as >described above, and the calls now go to an indirect jump table at >menu.479ff6 (instead of wininet.whatever) which jumps to a small bit >of code that pushes the indirect address and jumps to >__delayLoadHelper. > In this case, it looks like it might fill in all >of the functions on the first invocation. Nope, just the one. Wonder why it doesn't just fill them all in? The table has many 0 entries too. Probably unused functions. Well, this is an interesting feature and all, but it does bloat the code. There appears to be at least 2 copies of the address tables, and the tables are larger than the regular ones, including null entries. Then there are an additional 16 bytes of code per function to set up to call __delayLoadHelper. There's always a tradeoff. More bloat for a slightly faster initial load. I think manually loading your functions would take less space. But the automatic loading makes your code simpler.
Technical Details
Message-ID:
<5n4fp0tb2b20jn9mbeu6tmjreh1qqp1kbj@4ax.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<419508ed$1@newsgroups.borland.com> <419516cd$1@newsgroups.borland.com> <41955b2e$1@newsgroups.borland.com> <41955ff6@newsgroups.borland.com> <rftcp05c1rv7h9tahtrs9i6u38kt3au33b@4ax.com> <4197086d$1@newsgroups.borland.com> <17vep0543qqovnp4nt11762l33o181lile@4ax.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,7fd10020e90983c X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: Bob Gonder <notbg@notmindspring.invalid> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Is it possible to use Wininet functions WITHOUT LINKING the Wininet.lib ?? Date: Sun, 14 Nov 2004 09:33:35 -0800 Organization: MindSpring Enterprises, Inc. Reply-To: notbg@notmindspring.invalid Message-ID: <5n4fp0tb2b20jn9mbeu6tmjreh1qqp1kbj@4ax.com> References: <419508ed$1@newsgroups.borland.com> <419516cd$1@newsgroups.borland.com> <41955b2e$1@newsgroups.borland.com> <41955ff6@newsgroups.borland.com> <rftcp05c1rv7h9tahtrs9i6u38kt3au33b@4ax.com> <4197086d$1@newsgroups.borland.com> <17vep0543qqovnp4nt11762l33o181lile@4ax.com> X-Newsreader: Forte Agent 1.93/32.576 English (American) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 67.77.147.16 X-Trace: newsgroups.borland.com 1100453610 67.77.147.16 (14 Nov 2004 09:33:30 -0700) Lines: 26 Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail