Article View: borland.public.cppbuilder.nativeapi
Article #8410Re: how to implement myself LoadLibrary function
From: Remy Lebeau (TeamB)
Date: Fri, 29 Oct 2004 16:44
Date: Fri, 29 Oct 2004 16:44
24 lines
1647 bytes
1647 bytes
"Siney" <siney@yeah.net> wrote in message news:4182135a@newsgroups.borland.com... > I write code like below: You should be using LoadLibrary() and GetProcAddress() instead of CreateFile() and manual pointer arithmetic. > the code can work fine, but if call APIs like: <snip> > the code occured AV, WHY? You are most likely corrupting the stack, or else the DLL has not been allowed to properly initialize other OS libraries that it is dependant on. > how to implement myself LoadLibrary function that > can work fine? Why are you trying to implement such functionality manually when it already exists natively in the OS? Gambit
Technical Details
Message-ID:
<41827317$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news-out2.kabelfoon.nl!83.128.0.10.MISMATCH!newsfeed.kabelfoon.nl!newsfeed.multikabel.nl!newsfeed.wirehub.nl!194.72.7.126.MISMATCH!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<4182135a@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,9ef20cab45a63808 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <4182135a@newsgroups.borland.com> Subject: Re: how to implement myself LoadLibrary function Date: Fri, 29 Oct 2004 09:44:00 -0700 Lines: 26 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 68.69.17.41 Message-ID: <41827317$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1099068183 68.69.17.41 (29 Oct 2004 09:43:03 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news-out2.kabelfoon.nl!83.128.0.10.MISMATCH!newsfeed.kabelfoon.nl!newsfeed.multikabel.nl!newsfeed.wirehub.nl!194.72.7.126.MISMATCH!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail