Wininet

Wininet

Postby Manuel Valdenebro » Wed Apr 21, 2010 4:53 am

I am practicing with Wininet for HTTP API.

I have seen TInternet class uses wininet.dll. I have also seen some examples of Enrico Maria, linking wininet.lib BCC5 library. I ask myself the following questions:

1) Which is faster for the application? Use the Dll or Lib?

2) The lib is from 2000 and 2008 DLL (version of Explorer). Have been changes in the DLL that advised dont use a library of 2000?
Un saludo

Manuel
User avatar
Manuel Valdenebro
 
Posts: 706
Joined: Thu Oct 06, 2005 9:57 pm
Location: Málaga-España

Re: Wininet

Postby Enrico Maria Giordano » Wed Apr 21, 2010 1:42 pm

wininet.lib is only an import library for wininet.dll.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Wininet

Postby Manuel Valdenebro » Wed Apr 21, 2010 5:04 pm

Enrico Maria, thanks for your answer.

Then I was loading dobble the library.

1) I have BCC55\wininet.lib in the libraries list when I compile.

2) I called wininet.lib, in the module, as it is in FWH sample:

function WinINet()

if hWinINet == nil
hWinINet = LoadLib32( "WinINet.dll" )
if Abs( hWinINet ) <= 32
MsgStop( "Cannot load WinINet.dll!" )
endif
endif
return hWinINet

...............................

I understand now I can cancel 2º case and only I need BCC55\lib

Kinds regards.
Un saludo

Manuel
User avatar
Manuel Valdenebro
 
Posts: 706
Joined: Thu Oct 06, 2005 9:57 pm
Location: Málaga-España


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 93 guests