Click here to Skip to main content
16,006,355 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: To make a different "button control" Pin
KellyR20-Oct-04 4:58
KellyR20-Oct-04 4:58 
GeneralRe: To make a different "button control" Pin
Maximilien20-Oct-04 6:15
Maximilien20-Oct-04 6:15 
GeneralRe: To make a different "button control" Pin
illidan9920-Oct-04 13:12
illidan9920-Oct-04 13:12 
GeneralError: Uresolved external ... LoadString(... Pin
Vladimir Dubovoy20-Oct-04 3:51
Vladimir Dubovoy20-Oct-04 3:51 
GeneralMilliseconds and SystemTimeToVariantTime Pin
Federico Milano20-Oct-04 3:46
Federico Milano20-Oct-04 3:46 
GeneralRe: Milliseconds and SystemTimeToVariantTime Pin
David Crow20-Oct-04 4:41
David Crow20-Oct-04 4:41 
GeneralHTTP status code of a web address Pin
si_6920-Oct-04 3:45
si_6920-Oct-04 3:45 
GeneralRe: HTTP status code of a web address Pin
si_6920-Oct-04 5:16
si_6920-Oct-04 5:16 
following on from that i have, the below

which if given a vaild url, such as www.google.com
it will return 200, however if its invalid it returns 0

the below example should return 404

any ideas ???


CString status="";
HINTERNET hSession = ::InternetOpen(_T(""),
INTERNET_OPEN_TYPE_PRECONFIG,
0,
0,
0);
HINTERNET hConnection = ::InternetConnect(hSession,
_T("www.msn55.com"),
INTERNET_DEFAULT_HTTP_PORT,
_T(""),
_T(""),
INTERNET_SERVICE_HTTP,
0,
0);
HINTERNET hRequest = ::HttpOpenRequest(hConnection,0, "",0, 0, 0,0, 0);
::HttpSendRequest(hRequest,0,0,0,0);
char c_status [12];
DWORD sizeStatus = sizeof (c_status);
DWORD dwinxHdr = 0L;
HttpQueryInfo (hRequest, HTTP_QUERY_STATUS_CODE,
(LPVOID) c_status,
(LPDWORD) &sizeStatus,
(LPDWORD) &dwinxHdr);

status = c_status;

// Close the request handle.

::InternetCloseHandle(hRequest);

// Close the HTTP connection handle.

::InternetCloseHandle(hConnection);

// Close the WinInet session.

::InternetCloseHandle(hSession);

GeneralPriority queue in MFC Pin
SimpleProgramer20-Oct-04 3:06
SimpleProgramer20-Oct-04 3:06 
GeneralRe: Priority queue in MFC Pin
Kevin McFarlane20-Oct-04 6:35
Kevin McFarlane20-Oct-04 6:35 
GeneralUpdateResource function Pin
includeh1020-Oct-04 3:06
includeh1020-Oct-04 3:06 
GeneralKey Combinations Pin
DarrollWalsh20-Oct-04 2:42
DarrollWalsh20-Oct-04 2:42 
Questionaccess CMainFrame? Pin
george ivanov20-Oct-04 2:36
george ivanov20-Oct-04 2:36 
AnswerRe: access CMainFrame? Pin
Vikram Kashyap20-Oct-04 2:55
Vikram Kashyap20-Oct-04 2:55 
GeneralVC6 Custom Appwizard Pin
abarbs20-Oct-04 2:23
abarbs20-Oct-04 2:23 
GeneralRe: VC6 Custom Appwizard Pin
Jim Crafton20-Oct-04 8:10
Jim Crafton20-Oct-04 8:10 
GeneralAdd -ins Pin
savilani120-Oct-04 2:01
savilani120-Oct-04 2:01 
GeneralRe: Add -ins Pin
Vikram Kashyap20-Oct-04 2:36
Vikram Kashyap20-Oct-04 2:36 
GeneralUsing resources from a dll in an exported class Pin
Jon Hulatt20-Oct-04 1:42
Jon Hulatt20-Oct-04 1:42 
GeneralRe: Using resources from a dll in an exported class Pin
Jim Crafton20-Oct-04 8:13
Jim Crafton20-Oct-04 8:13 
GeneralRe: Using resources from a dll in an exported class Pin
Jon Hulatt21-Oct-04 0:32
Jon Hulatt21-Oct-04 0:32 
QuestionHow do I do this? Pin
pubududilena20-Oct-04 0:49
pubududilena20-Oct-04 0:49 
AnswerRe: How do I do this? Pin
Maximilien20-Oct-04 2:43
Maximilien20-Oct-04 2:43 
GeneralRe: How do I do this? Pin
pubududilena20-Oct-04 18:04
pubududilena20-Oct-04 18:04 
GeneralRe: format of a zip (jar) file Pin
parths19-Oct-04 23:53
parths19-Oct-04 23:53 

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.