Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: How to use Res: Protocol?

5 views
Skip to first unread message

Igor Tandetnik

unread,
Dec 1, 2006, 8:10:48 AM12/1/06
to
"Jakein2006" <pen...@163.com> wrote in message
news:114F2AC3-17B1-4F6C...@microsoft.com
> I want to use the following codes to access html file, but it keep
> failing , please tell me what else I need to do make it right.
>
> CWebBrowser2* m_pWebCtrl;
> CString strApFileName=TEXT("res://WBP.exe/html1.htm");

Specify full path to the EXE. Make sure the EXE actually contains the
HTML resource.
--
With best wishes,
Igor Tandetnik

With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925


Jakein2006

unread,
Dec 4, 2006, 3:23:02 AM12/4/06
to
But when I use the following statement to replace the set statement:

strApFileName=TEXT("res://E:/wbp/Debug/WBP.exe/html1.htm");

It still doesnot work.

Can you tell me what is wrong with my code?

Thanks.
--
jake

Igor Tandetnik

unread,
Dec 4, 2006, 8:27:27 AM12/4/06
to
"Jakein2006" <pen...@163.com> wrote in message
news:69457847-8806-4283...@microsoft.com

> But when I use the following statement to replace the set statement:
>
> strApFileName=TEXT("res://E:/wbp/Debug/WBP.exe/html1.htm");
>
> It still doesnot work.

Define "doesn't work". How exactly it fails?

> Can you tell me what is wrong with my code?

I don't see anything wrong with the single line of code you've shown.
Unfortunately, my crystal ball is acting up today, I have difficulty
peering into the depths of your mind.

Jakein2006

unread,
Dec 4, 2006, 8:55:00 AM12/4/06
to
Maybe it need some head files or lib or sth. else?

Thanks.
--
jake

Jakein2006

unread,
Dec 4, 2006, 7:19:00 PM12/4/06
to
I hope that one expert can give me one example program of how to use
Res:Protocol?

I appreciate your help.
--
jake

0 new messages