🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #15788

Re: GetIfTable?

#15788
From: vERUs
Date: Thu, 12 Jun 2003 15:26
20 lines
1484 bytes
> If you have BCB5 or 6, then add Iphlpapi.lib to your project.  It is
located
> in the $(BCB)\Lib\PSDK folder.

When I do this I get an exception at address 00000000.
It's the same after I've run it trough IMPLIB.

> If the above doesn't work, then yes.
> By using LoadLibrary() and GetProcAddress().

When I try this it doesn't work eighter, the GetProcAddress() function
fails.

typedef DWORD (WINAPI *PROCGIT)(PMIB_IFTABLE, PULONG, BOOL);
PROCGIT GetIfTable;

GetIfTable = (PROCGIT)GetProcAddress(GetModuleHandle("iphlpapi.dll"),
"GetIfTable");

/ vERUs
Technical Details
Message-ID: <3ee89b89@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3ee62442@newsgroups.borland.com> <3ee62f95$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,70d2eff840e44f86
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-06-12 08:31:43 PST
From: "vERUs" <verus@privat.utfors.se>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3ee62442@newsgroups.borland.com> <3ee62f95$1@newsgroups.borland.com>
Subject: Re: GetIfTable?
Date: Thu, 12 Jun 2003 17:26:11 +0200
Lines: 22
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4920.2300
X-MIMEOLE: Produced By Microsoft MimeOLE V5.50.4920.2300
NNTP-Posting-Host: 212.105.32.5
Message-ID: <3ee89b89@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1055431561 212.105.32.5 (12 Jun 2003 08:26:01 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail