WinInet.dll missing in some computers?

I am using winInet in my app, and compile it using "use MFC in a static library".
When I try to run it on a different computer, It refuses to run giving a:
"The ... file is linked to a missing export wininet.dll - HttpEndRquestA." error.
What should I do to include this dll in my app? - or any other solution.
Thanks
gilbert_changAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

nil_dibCommented:
if you use an installation program like installshield you can copy the dll during the installation process ...

0
gilbert_changAuthor Commented:
Yea - but that will add another 449K to the weight of my app.
Is there some kind of basic problem here? Are there some cases in which this dll is missing (old versions of Windows, etc.)?
Thanks.
0
jaguar_sriCommented:
Ofcourse the dlls depend on the windows version you are using. But the dlls specific to MFC come along with the VC++
installation done on your machine.
Now for the problem of non-protability i.e., inability of your application to run on a different machine using Installshield or any such may be a good solution.

But still if you simply copy that dll , then in most cases a dll may call another dll and so on.
Even worse than this, dlls versions keep on changing so you cannot copy all dlls just like that without trouble.
So my advice is sort out for which version of windows your application is meant to work in and then use a installation tool.

BECAUSE A GOOD PORTABLE APPLICATION IS MEANT TO RUN ON SYSTEMS WITH ONLY THE OS AND NOT ENTIRE STUDIO.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
gilbert_changAuthor Commented:
I just want to know how to solve the problem without including the dll in the distribution package. How do I compile it into my app?
0
mmachieCommented:
here's something from msj 'under the hood' column

"...Microsoft Internet Explorer (IE) 3.0x uses WININET.DLL—a Win32® system DLL that provides a high-level layer over the HTTP, FTP, and Gopher protocols, sparing you from the nastiness of Windows® socket programming. "

so if Matt Pietrek, the writer of the column, is correct as long as the user has ie 3.0 install the dll should be there.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
System Programming

From novice to tech pro — start learning today.