FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Wininet
Posts: 711
Joined: Thu Oct 06, 2005 09:57 PM
Wininet
Posted: Wed Apr 21, 2010 04: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
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Wininet
Posted: Wed Apr 21, 2010 01:42 PM

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

EMG

Posts: 711
Joined: Thu Oct 06, 2005 09:57 PM
Re: Wininet
Posted: Wed Apr 21, 2010 05: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

Continue the discussion