Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2004-08-23
3
Medium Priority
?
904 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
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Downtime reduced, data recovered by utilizing an Experts Exchange Business Account Challenge The United States Marine Corps employs more than 200,000 active-duty Marines with operations in four continents, all requiring complex networking system…
I'm a big fan of Windows' offline folder caching and have used it on my laptops for over a decade.  One thing I don't like about it, however, is how difficult Microsoft has made it for the cache to be moved out of the Windows folder.  Here's how to …
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…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…

926 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