Article View: borland.public.cppbuilder.nativeapi
Article #3333Re: dynamically loading wininet.dll
From: Mike Collins
Date: Sun, 23 Jul 2006 16:02
Date: Sun, 23 Jul 2006 16:02
31 lines
2184 bytes
2184 bytes
Hay Bob, thanks for the pointers. 1) I might not report load library failure but i test for it... This is just work in progress code... 2) LoadLibrary works fine, the dll is being loaded - GetProcAddress seems to be failing to locate or load the functions. 3) As for : szWINetPath.SetLength(MAX_PATH+1); szWINetPath.SetLength(GetSystemDirectory(szWINetPath.c_str(), szWINetPath.Length())); - I've used this 1000's of times without issue. GetSystemDirectory returns the size of the returned string so it's perfect for setting the ansistring length when returned. 4) >>BTW#2: AnsiString isn't an sz. Probably an 'as' or plain 's'. - Point of conjections - old habits die hard - i'll always get pulled up about this - can't make my fingers type different. 5) >> Proper use of flow control will eliminated those extra if()s at the end... - Work in progress - code isn't working yet so i'm not going to worry to much about slickness at this point. Thanks again - any ideas why GetProc is failing??? Mike C "Bob Gonder" <notbg@notmindspring.invalid> wrote in message
Technical Details
Message-ID:
<44c39d82@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news4.google.com!news.glorb.com!newsgate.cistron.nl!xs4all!feeder1.cambrium.nl!feed.tweaknews.nl!news2.euro.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<44c3590d$1@newsgroups.borland.com> <6tu6c2pdoiiif4akdmtsvbmi8u1kvv3c4q@4ax.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,1c5f45dab245a9b X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Mike Collins" <its@TheBottomOfThePost.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <44c3590d$1@newsgroups.borland.com> <6tu6c2pdoiiif4akdmtsvbmi8u1kvv3c4q@4ax.com> Subject: Re: dynamically loading wininet.dll Date: Sun, 23 Jul 2006 17:02:06 +0100 Lines: 33 Organization: SDA Ltd X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.3790.2663 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.2663 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 81.2.92.14 Message-ID: <44c39d82@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1153670530 81.2.92.14 (23 Jul 2006 09:02:10 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news4.google.com!news.glorb.com!newsgate.cistron.nl!xs4all!feeder1.cambrium.nl!feed.tweaknews.nl!news2.euro.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail