Click to See Complete Forum and Search --> : CHttpFile,CInternetConnection against CHttpConnection and CInternetSession in ATL/CO


dswain
July 8th, 2002, 04:55 AM
Hi ,

Is there any equivalent sample code for CHttpFile,CInternetConnection against CHttpConnection and CInternetSession in ATL/COM without any dependency of MFC (As Tear sample code in MFC).

As you know "The TEAR sample shows how to write an MFC console application that uses WININET.DLL to communicate with the Internet. The sample shows how to form an HTTP request using CHttpFile against CHttpConnection and CInternetSession objects."

I need the same requirements to communicate with Internet using ATL/COM but without MFC dependency.



Any suggestion appreciated.

Regards,
Dswain

Manish Malik
July 9th, 2002, 02:11 AM
Hi,

http://www.codeguru.com/atl/asyncpp.shtml demonstrates such techniques. Also, at this MSJ article (http://www.microsoft.com/msj/defaultframe.asp?page=/msj/0698/wininet.htm&nav=/msj/0698/newnav.htm), you can capture someone utilizing a mix of technologies at once (although this not what you may want, still it makes a good read). This (http://www.codeproject.com/useritems/retrievehttp.asp) is a VB project demonstrating the same what the above codeguru article did in VC.