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

webDav

0 views
Skip to first unread message

Jacek Centkowski

unread,
Jun 11, 2003, 3:54:18 AM6/11/03
to
Hello

I want to open webDAV folder from inside VC++ code (in the same manner like
it is done, for instance in: IE6.0 - you select open, check open as a web
folder and simply type some address and you have network place available
inside your system).
I though that I can use WNetAddConnection2 function but it works only for
path like: \\computer_name\directory and does not works for
http://192.168.0.224/user_dir/dir (in IE it works perfectly... :( ).

Do you know any solution how to do it in simple programmatically way which
means supported by system? I know that connection by OLE DB is possible but
it takes to much effort to be realized...

Thanks in advice for every simple answer.

regards
Jacek


Tim

unread,
Jun 11, 2003, 7:33:50 AM6/11/03
to
Jacek,

Try putting a web browser control on the form and Navigate to the desired
URL.

If you want to open IE outside your application with the URL, then use
ShellExecute using the URL.

HTH
- Tim

"Jacek Centkowski" <ja...@fake.pl> wrote in message
news:bc6m2v$2rjs$1...@news2.ipartners.pl...

Jacek Centkowski

unread,
Jun 11, 2003, 8:44:42 AM6/11/03
to
Hi Tim
and thanks for fast answer :))

Could you specify more this web browser control? Have you been using anyone?

Regards
Jacek


Użytkownik "Tim" <Tim@NoSpam> napisał w wiadomości
news:eGmikxAM...@TK2MSFTNGP11.phx.gbl...

Tim

unread,
Jun 11, 2003, 7:02:48 PM6/11/03
to
Right click on your dialog and select 'Insert Activex Control', then scroll
down to 'Microsoft Web Browser'.

Control Double Click on the new Web Browser control and it will ask if you
want the controll inserted & for wrapper code to be to be created. Click OK
and then specify a name for your control variable EG m_web ...

You will then have a new member variable in your dialog and a new class
CWebBrowser2 (the wrapper) in your project. To go to an URL, do

m_web.Navigate(_T(" enter your URL here "), ....);

- Tim


"Jacek Centkowski" <ja...@fake.pl> wrote in message

news:bc773h$63g$1...@news2.ipartners.pl...

0 new messages