[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 308
  • Last Modified:

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
0
gilbert_chang
Asked:
gilbert_chang
1 Solution
 
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
 
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

Featured Post

2018 Annual Membership Survey

Here at Experts Exchange, we strive to give members the best experience. Help us improve the site by taking this survey today! (Bonus: Be entered to win a great tech prize for participating!)

Tackle projects and never again get stuck behind a technical roadblock.
Join Now