Click here to Skip to main content
15,927,745 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: DC Problem.. Pin
Roger Allen13-Feb-02 2:52
Roger Allen13-Feb-02 2:52 
GeneralRe: DC Problem.. Pin
alex.barylski13-Feb-02 3:09
alex.barylski13-Feb-02 3:09 
GeneralTemplate - code bloat ?!! Pin
Ravish12-Feb-02 19:05
Ravish12-Feb-02 19:05 
GeneralRe: Template - code bloat ?!! Pin
Christian Graus12-Feb-02 20:05
protectorChristian Graus12-Feb-02 20:05 
GeneralRe: Template - code bloat ?!! Pin
Ravish12-Feb-02 20:04
Ravish12-Feb-02 20:04 
GeneralRe: Template - code bloat ?!! Pin
Joaquín M López Muñoz12-Feb-02 20:02
Joaquín M López Muñoz12-Feb-02 20:02 
GeneralRe: Template - code bloat ?!! Pin
Christian Graus13-Feb-02 1:28
protectorChristian Graus13-Feb-02 1:28 
GeneralWebPage Last Modified Time Pin
Ralfy12-Feb-02 18:49
Ralfy12-Feb-02 18:49 
How can I get the WebPage's Last Modified Time.
Following is my code,but it doesn't work properly.
::HttpQueryInfo always return FALSE. Why?
BOOL CChkOlDlg::IsUrlModified(CString strUrl)
{
	BOOL bRet = FALSE,bSucc = FALSE;
	
	HINTERNET hSession ;
	hSession = ::InternetOpen(_T("CheckOl"),
		PRE_CONFIG_INTERNET_ACCESS,
		_T(""),
		INTERNET_INVALID_PORT_NUMBER,
		0 ) ;
	
	if(hSession)
	{
		HINTERNET hConnect = ::InternetConnect(hSession,
			GetServer(strUrl),
			INTERNET_INVALID_PORT_NUMBER,
			"",
			"",
			INTERNET_SERVICE_HTTP,
			0,
			0);
		if(hConnect != NULL)
		{
			HINTERNET hHttpFile = ::HttpOpenRequest(hConnect,
				_T("GET"),
				strUrl,
				HTTP_VERSION,
				NULL,
				0,
				INTERNET_FLAG_DONT_CACHE,
				0) ;
			if(hHttpFile != NULL)
			{
				BOOL bSendRequest = ::HttpSendRequest(hHttpFile, NULL, 0, 0, 0);
				if(bSendRequest)
				{
					// Get size of file.
					char bufQuery[32] ;
					DWORD dwLengthBufQuery = sizeof (bufQuery);
					BOOL bQuery = ::HttpQueryInfo(hHttpFile,
						HTTP_QUERY_LAST_MODIFIED, 
						bufQuery, 
						&dwLengthBufQuery,
						NULL) ;
					if(bQuery)
					{
						bSucc = TRUE;
						// .....
					}
				}
				VERIFY(::InternetCloseHandle(hHttpFile)); 
			}
			VERIFY(::InternetCloseHandle(hConnect)) ;
		}
	}
	
	if(!bSucc)
	{
		// SetError
	}
	return bRet;
}

GeneralRe: WebPage Last Modified Time Pin
Jon Hulatt12-Feb-02 22:07
Jon Hulatt12-Feb-02 22:07 
GeneralRe: WebPage Last Modified Time Pin
Ralfy13-Feb-02 14:08
Ralfy13-Feb-02 14:08 
GeneralC2679 Pin
12-Feb-02 18:16
suss12-Feb-02 18:16 
GeneralRe: C2679 Pin
Derek Waters12-Feb-02 18:36
Derek Waters12-Feb-02 18:36 
GeneralRe: C2679 Pin
Christian Graus12-Feb-02 20:08
protectorChristian Graus12-Feb-02 20:08 
Generalnet send Pin
12-Feb-02 18:03
suss12-Feb-02 18:03 
GeneralRe: net send Pin
Fredrik Skog13-Feb-02 1:12
Fredrik Skog13-Feb-02 1:12 
GeneralATL programming practice query Pin
Nish Nishant12-Feb-02 17:58
sitebuilderNish Nishant12-Feb-02 17:58 
GeneralRe: ATL programming practice query Pin
Derek Waters12-Feb-02 18:40
Derek Waters12-Feb-02 18:40 
GeneralRe: ATL programming practice query Pin
Nish Nishant12-Feb-02 22:44
sitebuilderNish Nishant12-Feb-02 22:44 
GeneralRe: ATL programming practice query Pin
Ravish12-Feb-02 19:00
Ravish12-Feb-02 19:00 
GeneralRe: ATL programming practice query Pin
Nish Nishant12-Feb-02 22:45
sitebuilderNish Nishant12-Feb-02 22:45 
GeneralRe: ATL programming practice query Pin
13-Feb-02 6:39
suss13-Feb-02 6:39 
GeneralRe: ATL programming practice query Pin
Nish Nishant13-Feb-02 16:37
sitebuilderNish Nishant13-Feb-02 16:37 
QuestionHow can i change application icon Pin
12-Feb-02 14:34
suss12-Feb-02 14:34 
AnswerRe: How can i change application icon Pin
moliate12-Feb-02 14:42
moliate12-Feb-02 14:42 
GeneralRe: How can i change application icon Pin
12-Feb-02 15:13
suss12-Feb-02 15:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.