Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

maping a network drive to webdav server in  c/c++ in windows

Posted on 2004-08-23
3
Medium Priority
?
890 Views
Last Modified: 2013-12-19
i have to map a network drive to webdav server.  so that we can access the contents in the webdave server as in the drive.  i mean  netwok drive(x: ,y: , z: ) .  

i have used  wnetaddconnection() method . But it doesn't work.
and also i have used NetUseAdd() method.
Plz tell me if another solution for this problem. if it should done with these methods, how can we do that.
0
Comment
Question by:RamaKoti
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 37

Accepted Solution

by:
bbao earned 500 total points
ID: 11874724
personally, i think WNetAddConnection() is the right method to implement the function. here are some cues:

1) on the runtime machine, can you successfully map a network drive by manual operation? if it is not, please make sure all the related components and services should be running well for this operation, such as "client of MS network", "file and printer sharing for MS network", "workstation" and "server" services, NETBIOS over TCPIP etc.

2) have you noticed that WNetAddConnection() function is provided only for compatibility with 16-bit versions of Windows. Other Windows-based applications should call the WNetAddConnection2 or the WNetAddConnection3 function?

3) after calling the WNetAddConnection(), what is the Return Values? have you check the return value for error codes? MSDN gives the complete table of the error codes.

moreover, please also make sure that the following header file, library and character-set are correct.

  Header: Declared in Winnetwk.h.
  Library: Use Mpr.lib.
  Unicode: Implemented as Unicode and ANSI versions on Windows NT/2000/XP. Also supported by Microsoft Layer for Unicode.

hope it helps,
bbao
0

Featured Post

Portable, direct connect server access

The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The Need In an Active Directory enviroment, the PDC emulator provide time synchronization for the domain. This is important since Active Directory uses Kerberos for authentication.  By default, if the time difference between systems is off by more …
This article offers some helpful and general tips for safe browsing and online shopping. It offers simple and manageable procedures that help to ensure the safety of one's personal information and the security of any devices.
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

722 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question