Click here to Skip to main content
16,010,876 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Regular button questions... Pin
Tomasz Sowinski13-Sep-01 23:42
Tomasz Sowinski13-Sep-01 23:42 
GeneralRe: Regular button questions... Pin
Tommy H D Svensson14-Sep-01 0:37
Tommy H D Svensson14-Sep-01 0:37 
GeneralRe: Regular button questions... Pin
Tomasz Sowinski14-Sep-01 0:48
Tomasz Sowinski14-Sep-01 0:48 
GeneralDialog Resize Pin
13-Sep-01 21:12
suss13-Sep-01 21:12 
GeneralRe: Dialog Resize Pin
Paolo Messina14-Sep-01 4:46
professionalPaolo Messina14-Sep-01 4:46 
Questionhow to enumerate all the .txt files in some directory? Pin
phped13-Sep-01 20:24
phped13-Sep-01 20:24 
AnswerRe: how to enumerate all the .txt files in some directory? Pin
Ben M. Stokland13-Sep-01 21:36
Ben M. Stokland13-Sep-01 21:36 
Generalverify existency of URL ( with proxy ) Pin
13-Sep-01 18:18
suss13-Sep-01 18:18 
Dear all,

I am writing a programme using VC++ to display html or other kind of web page as help files. To make it more advance, I need to check the existency of the given URL before display it out so that it will browse to an user-default "unavailable page" instead of the usual 404-error page.

I am now facing a problem to verify the URL. I have tried several ways and none seems to work.

1. using InternetOpen follow by InternetOpenURL to check if it return a valid handle.

2. trying to use OnDownloadComplete through DISP_FUNCTION_MAP in CView ( as my IWebBrowser2 is not in CHtmlView, I cannot use DWebBrowserEvent )

for case (1),
InternetOpenURL other return NULL with error code 997 for all kind ( exist or non-exist ) of URL if InternetOpen using INTERNET_FLAG_ASYNC for the dwFlag.. think there is a bug in MFC as told in Microsoft KB(Q176176)

or, InternetOpenURL other return a valid handle for all kind ( again exist or non-exist ) of URL if InternetOpen using 0 for the dwFlag.. obviously this is wrong as I would like to receive NULL for non-exist URL.

for case (2),
I got problem when I try to call AfxConnectionAdvise(), it fail when it step into pCPC->FindConnectionPoint(iid, &pCP) in CTLCONN.cpp line 166 and return handle 0x80004002 ( which I found out as CdoE_INTERFACE_NOT_SUPPORTED, but I am not 100% sure )..

have anyone faced this kind of problem before. hope you could help

Thanks in advance.

Regards,

Kathy
GeneralRe: verify existency of URL ( with proxy ) Pin
A.R.14-Sep-01 0:08
A.R.14-Sep-01 0:08 
GeneralText Area With Multiline Pin
yccheok13-Sep-01 17:40
yccheok13-Sep-01 17:40 
GeneralRe: Text Area With Multiline Pin
Steen Krogsgaard13-Sep-01 21:26
Steen Krogsgaard13-Sep-01 21:26 
GeneralMultithreading with GUI hang up problem Pin
yccheok13-Sep-01 17:38
yccheok13-Sep-01 17:38 
GeneralRe: Multithreading with GUI hang up problem Pin
Tomasz Sowinski14-Sep-01 0:21
Tomasz Sowinski14-Sep-01 0:21 
GeneralZorder Pin
JekYu13-Sep-01 15:15
JekYu13-Sep-01 15:15 
GeneralRe: Zorder Pin
Christian Graus13-Sep-01 16:08
protectorChristian Graus13-Sep-01 16:08 
GeneralRe: Zorder Pin
JekYu13-Sep-01 16:32
JekYu13-Sep-01 16:32 
GeneralRe: Zorder Pin
13-Sep-01 18:26
suss13-Sep-01 18:26 
GeneralI need to disable ESC key in ATL COM CAxDialogImpl... Pin
Matt Philmon13-Sep-01 13:50
Matt Philmon13-Sep-01 13:50 
GeneralRe: I need to disable ESC key in ATL COM CAxDialogImpl... Pin
Ben M. Stokland13-Sep-01 21:13
Ben M. Stokland13-Sep-01 21:13 
GeneralRe: I need to disable ESC key in ATL COM CAxDialogImpl... Pin
Matt Philmon14-Sep-01 4:20
Matt Philmon14-Sep-01 4:20 
GeneralHELP Pin
DanYELL13-Sep-01 12:35
DanYELL13-Sep-01 12:35 
GeneralRe: HELP Pin
Michael P Butler13-Sep-01 22:11
Michael P Butler13-Sep-01 22:11 
GeneralColoring text in an ATL Control Pin
lpvoid13-Sep-01 12:11
lpvoid13-Sep-01 12:11 
GeneralRe: Coloring text in an ATL Control Pin
Erik Thompson13-Sep-01 12:41
sitebuilderErik Thompson13-Sep-01 12:41 
GeneralReading and writing bits. Pin
kakuni13-Sep-01 11:40
kakuni13-Sep-01 11:40 

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.