小/弟/用/inet api 重/写/inet控/件/...还/没/写/多/少/,就/遇/到/了/事/件/触/发/的/问/题.....怎/样/才/能/在 InternetSetStatusCallback  后/准/确/的/把/状/态/改/变/事/件/传/递/给/控/件啊......谢谢了....
一直说不要我提交什么造成伤害的言论,我晕了..只能用符号分开了

解决方案 »

  1.   

    INFO: Using WinInet APIs Asynchronously Within Visual Basic
    http://support.microsoft.com/kb/q189850/
      

  2.   

    WinInet API is the function set that makes the development of the Internet applications more easy and fast. Using WinInet API you may develop the applications that will work with Internet resources via protocols such as HTTP, FTP and Gopher. Also WinInet allows you to retrieve the files from the Internet Explorer Cache and give you a number of functions to establish and control a connection to your ISP (Internet Service Provider). The main advantage of the use of WinInet functions is that you are not need to learn the protocol syntax and Windows Sockets API. Moreover, all of the WinInet functions names are self-documented. It is very easy to understand what a function is doing by reading its name (look at them: InternetConnect, InternetReadFile, FtpPutFile, HttpSendRequest etc.). Some function names look like their prototypes from Win32API, therefore if you have some experience with Win32API you will have not spent much time to get WinInet in your arsenal. First primary source of the WinInet API info is Internet Client SDK. The documentation may be found at MSDN CDs (Platform SDK/Workshop/Networking, Protocols & Data Formats/Win32 Internet Functions) or at Microsoft Web Workshop website. The declarations (for C/C++) of the functions, structures and constant values may be found in the header file – wininet.h that shipped with Visual Studio and Platform SDK that you can download from MSDN Online website. As you guess, all the staff is targeted to the C/C++ developers though. But I have achieved some positive (and negative) results using WinInet API with Visual Basic, and I hope I can show you some pitfalls and the right way.Before you begin, you also must know four important disadvantages of WinInet API.   1. If you are using VB6, you cannot call the functions asynchronously using WinInet callback function. But with VB5 you can.
       2. Wininet.dll is not available on machines with the first release of the Windows95 without Internet Explorer 3 or higher.
       3. WinInet API is changeable. Some functions work well with one version of wininet.dll but they can change their behavior with another one. And you need rewrite your code if you want to use new version of wininet.dll in your application.
       4. Several functions cannot be used by usual (VB) way and you need apply some “pointer tricks” to handle strings and structures.
    http://www.vbip.com/wininet/index.asp
      

  3.   

    Win32 Internet API (WinInet API)
    http://www.vbip.com/wininet
      

  4.   

    Before you begin, you also must know four important disadvantages of WinInet API.   1. If you are using VB6, you cannot call the functions asynchronously using WinInet callback function. But with VB5 you can.新问题....为什么vb6里面不能异步啊.....