473,394 Members | 1,714 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

problem with dll

When I use “IP Helper API’s functions” In my program, all is ok. until I
run it on Windows 98.

On Windows Xp everything is ok.

On 98 I get an error:

MsgBox:

File MyApp.exe is
linked with missing export IPHLPAPI.DLL:GetPerAdapterInfo


I checked it with IPHLPAPI.DLL 5.0.1717.2 and 5.1.2600.2.

The first one is from 98 and I get with it this error.

The second one is from xp (works fine), but she won’t work when I copy
it do 98.

How to fix his problem?
Jul 22 '05 #1
5 2234

"Eddie" <on*******@tenbit.pl> wrote in message
news:ce**********@nemesis.news.tpi.pl...
When I use “IP Helper API’s functions” In my program, all is ok. until I
run it on Windows 98.

On Windows Xp everything is ok.

On 98 I get an error:


Off topic. Please read the welcome message for this newsgroup -
http://www.slack.net/~shiva/welcome.txt.
Jul 22 '05 #2
Eddie posted:
When I use “IP Helper API’s functions” In my program, all is ok. until I
run it on Windows 98.

On Windows Xp everything is ok.

On 98 I get an error:

MsgBox:

File MyApp.exe is
linked with missing export IPHLPAPI.DLL:GetPerAdapterInfo


I checked it with IPHLPAPI.DLL 5.0.1717.2 and 5.1.2600.2.

The first one is from 98 and I get with it this error.

The second one is from xp (works fine), but she won’t work when I copy
it do 98.

How to fix his problem?

OFF-TOPIC

On the Win98 system, it can't find the function entitled
"GetPerAdapterInfo" inside the file "IPHLPAPI.DLL".

If I'd to guess, then I'd say that this particular function was only added
to the library recently.

You can go to "www.dependencywalker.com", and download a nice tool to see
what DLLs and functions are involved.

Anyway, to the solution...

Do you need the program to be able to run on Win98? If not, it doesn't
matter.

If you *do* want the program to run on Win98, how would you best describe
your situation:

A) The use of this function is vital in the program

B) The use of this function is a nice feature, but if needs be I won't use
it.

If your answer is A, then your only option is to package the newer version
of this DLL with your executable, or provide a readme.txt that contains a
link to DLL online or something like that.

Now, if you answer is B, here's the beauty:

HMODULE hDLL = LoadLibrary("IPHLPAPI.DLL");

if (!hDLL) { throw "Poo!"; }

return_value (*GetPerAdapterInfo)(arguments);

GetPerAdapterInfo = GetProcAddress(hDLL,"GetPerAdapterInfo");

if (!GetPerAdapterInfo)
{
FreeLibrary(hDLL);
throw "Poo!";
}

//Now you can use the function as normal

Don't forget to free the library at the end

FreeLibrary(hDLL);

I'm sure there must be some sort of template class out there that'll do this
for you, one that will free the library upon an exception and so on. If
there ain't, I might waste an hour or so of my time on one!
-JKop
Jul 22 '05 #3
thanks for advive, it's informative.
my program base on this function, it can't be run with out it.

Is there a replacement code to do the same as the missing one?
JKop wrote:
Eddie posted:

When I use “IP Helper API’s functions” In my program, all is ok. until I
run it on Windows 98.

On Windows Xp everything is ok.

On 98 I get an error:

MsgBox:

File MyApp.exe is
linked with missing export IPHLPAPI.DLL:GetPerAdapterInfo


I checked it with IPHLPAPI.DLL 5.0.1717.2 and 5.1.2600.2.

The first one is from 98 and I get with it this error.

The second one is from xp (works fine), but she won’t work when I copy
it do 98.

How to fix his problem?


OFF-TOPIC

On the Win98 system, it can't find the function entitled
"GetPerAdapterInfo" inside the file "IPHLPAPI.DLL".

If I'd to guess, then I'd say that this particular function was only added
to the library recently.

You can go to "www.dependencywalker.com", and download a nice tool to see
what DLLs and functions are involved.

Anyway, to the solution...

Do you need the program to be able to run on Win98? If not, it doesn't
matter.

If you *do* want the program to run on Win98, how would you best describe
your situation:

A) The use of this function is vital in the program

B) The use of this function is a nice feature, but if needs be I won't use
it.

If your answer is A, then your only option is to package the newer version
of this DLL with your executable, or provide a readme.txt that contains a
link to DLL online or something like that.

Now, if you answer is B, here's the beauty:

HMODULE hDLL = LoadLibrary("IPHLPAPI.DLL");

if (!hDLL) { throw "Poo!"; }

return_value (*GetPerAdapterInfo)(arguments);

GetPerAdapterInfo = GetProcAddress(hDLL,"GetPerAdapterInfo");

if (!GetPerAdapterInfo)
{
FreeLibrary(hDLL);
throw "Poo!";
}

//Now you can use the function as normal

Don't forget to free the library at the end

FreeLibrary(hDLL);

I'm sure there must be some sort of template class out there that'll do this
for you, one that will free the library upon an exception and so on. If
there ain't, I might waste an hour or so of my time on one!
-JKop

Jul 22 '05 #4
Eddie posted:
thanks for advive, it's informative.
my program base on this function, it can't be run with out it.

Is there a replacement code to do the same as the missing one?


No. You need the new version of that DLL. No buts about it.
-JKop
Jul 22 '05 #5

"Eddie" <on*******@tenbit.pl> wrote in message
news:ce**********@atlantis.news.tpi.pl...
thanks for advive, it's informative.
my program base on this function, it can't be run with out it.

Is there a replacement code to do the same as the missing one?


You *really* need to ask in a Windows newsgroup, not here.

It is highly likely that that function is only supported by the newer
operating system. In that case, if your program needs that function, then
your program simply does not support win98. That's really not that bad,
though,since 1998 was six years go. That's a long time in computer terms -
especially considering how often a new Windows system comes out! :-)

But you can ask in a Windows newsgroup (on the server news.microsoft.com) if
there is some suitable replacement that *does* work in win98.

-Howard

Jul 22 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: Kostatus | last post by:
I have a virtual function in a base class, which is then overwritten by a function of the same name in a publically derived class. When I call the function using a pointer to the derived class...
117
by: Peter Olcott | last post by:
www.halting-problem.com
18
by: Ian Stanley | last post by:
Hi, Continuing my strcat segmentation fault posting- I have a problem which occurs when appending two sting literals using strcat. I have tried to fix it by writing my own function that does the...
28
by: Jon Davis | last post by:
If I have a class with a virtual method, and a child class that overrides the virtual method, and then I create an instance of the child class AS A base class... BaseClass bc = new ChildClass();...
6
by: Ammar | last post by:
Dear All, I'm facing a small problem. I have a portal web site, that contains articles, for each article, the end user can send a comment about the article. The problem is: I the comment length...
16
by: Dany | last post by:
Our web service was working fine until we installed .net Framework 1.1 service pack 1. Uninstalling SP1 is not an option because our largest customer says service packs marked as "critical" by...
2
by: Mike Collins | last post by:
I cannot get the correct drop down list value from a drop down I have on my web form. I get the initial value that was loaded in the list. It was asked by someone else what the autopostback was...
0
by: =?Utf-8?B?am8uZWw=?= | last post by:
Hello All, I am developing an Input Methop (IM) for PocketPC / Windows Mobile (PPC/WM). On some devices the IM will not start. The IM appears in the IM-List but when it is selected from the...
1
by: sherifbk | last post by:
Problem description ============== - I have 4 clients and 1 server (SQL server) - 3 clients are Monitoring console 1 client is operation console - Monitoring console collects some data from...
9
by: AceKnocks | last post by:
I am working on a framework design problem in which I have to design a C++ based framework capable of solving three puzzles for now but actually it should work with a general puzzle of any kind and I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.