Click here to Skip to main content
15,886,812 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionhow to draw oscilloscope graph when we import wmp3 file in vc++ Pin
rajniyadav1a19-Jan-11 23:15
rajniyadav1a19-Jan-11 23:15 
AnswerRe: how to draw oscilloscope graph when we import wmp3 file in vc++ Pin
Cedric Moonen19-Jan-11 23:23
Cedric Moonen19-Jan-11 23:23 
QuestionDavAddConnection example [modified] Pin
ShadowUz19-Jan-11 22:14
ShadowUz19-Jan-11 22:14 
AnswerRe: DavAddConnection examle Pin
Andrew Brock19-Jan-11 22:30
Andrew Brock19-Jan-11 22:30 
GeneralRe: DavAddConnection examle Pin
ShadowUz19-Jan-11 22:37
ShadowUz19-Jan-11 22:37 
GeneralRe: DavAddConnection examle Pin
Andrew Brock19-Jan-11 22:46
Andrew Brock19-Jan-11 22:46 
AnswerRe: DavAddConnection examle Pin
Andrew Brock19-Jan-11 22:53
Andrew Brock19-Jan-11 22:53 
GeneralRe: DavAddConnection example Pin
ShadowUz20-Jan-11 18:14
ShadowUz20-Jan-11 18:14 
Hello.
I have tried a couple of thing to make the code work. But, still, I cannot connect to our WebDAV server "webdav.pspace.co.kr". Confused | :confused:

But, using the code shown below, I'm getting a positive answer: "Connection added to":

CString locname=_T("\\\\www.barracudaserver.com\\dav\\");
DWORD dwRetVal;
NETRESOURCE nr;
DWORD dwFlags;
memset(&nr, 0, sizeof (NETRESOURCE));

nr.dwScope=RESOURCE_GLOBALNET; 
nr.dwType = RESOURCETYPE_ANY;
nr.lpLocalName = NULL;
nr.lpRemoteName = (LPTSTR)((LPCTSTR)locname);
nr.lpProvider = _T("");

dwFlags = CONNECT_UPDATE_PROFILE;
dwRetVal = WNetAddConnection2(&nr, _T(""), _T(""), dwFlags);

if (dwRetVal == NO_ERROR)
        {
             AfxMessageBox(_T("Connection added to"));
	}
else    
        {
             TCHAR szError[32];	
             _stprintf(szError, _T("Error %u"), dwRetVal);
             AfxMessageBox(szError);
        }


In the case of locname=_T("\\\\webdav.pspace.co.kr\\") the result is "Error 53:", which means "The network path you specified is not found."

May be something is wrong with the server or may be I'm using the wrong approach.
Any ideas?.. Unsure | :~
GeneralRe: DavAddConnection example Pin
Andrew Brock20-Jan-11 18:37
Andrew Brock20-Jan-11 18:37 
GeneralRe: DavAddConnection example Pin
ShadowUz20-Jan-11 18:50
ShadowUz20-Jan-11 18:50 
GeneralRe: DavAddConnection example Pin
Andrew Brock20-Jan-11 19:05
Andrew Brock20-Jan-11 19:05 
AnswerRe: DavAddConnection example Pin
micktsai21-Jan-11 0:55
micktsai21-Jan-11 0:55 
QuestionHow to use ActiveX control in win32? Pin
mathivanaan19-Jan-11 22:12
mathivanaan19-Jan-11 22:12 
AnswerRe: How to use ActiveX control in win32? Pin
_AnsHUMAN_ 19-Jan-11 22:29
_AnsHUMAN_ 19-Jan-11 22:29 
GeneralRe: How to use ActiveX control in win32? Pin
Stephen Hewitt19-Jan-11 23:14
Stephen Hewitt19-Jan-11 23:14 
AnswerRe: How to use ActiveX control in win32? Pin
Cedric Moonen19-Jan-11 22:35
Cedric Moonen19-Jan-11 22:35 
QuestionCountry Name Pin
john563219-Jan-11 21:26
john563219-Jan-11 21:26 
AnswerRe: Country Name Pin
_AnsHUMAN_ 19-Jan-11 21:36
_AnsHUMAN_ 19-Jan-11 21:36 
GeneralRe: Country Name Pin
john563219-Jan-11 21:53
john563219-Jan-11 21:53 
GeneralRe: Country Name Pin
Richard MacCutchan20-Jan-11 1:46
mveRichard MacCutchan20-Jan-11 1:46 
QuestionHow can check which FormView is currectly visible? Pin
Le@rner19-Jan-11 20:21
Le@rner19-Jan-11 20:21 
AnswerRe: How can check which FormView is currectly visible? Pin
Andrew Brock19-Jan-11 20:38
Andrew Brock19-Jan-11 20:38 
GeneralRe: How can check which FormView is currectly visible? Pin
Le@rner19-Jan-11 20:55
Le@rner19-Jan-11 20:55 
GeneralRe: How can check which FormView is currectly visible? Pin
Andrew Brock19-Jan-11 21:24
Andrew Brock19-Jan-11 21:24 
QuestionCalling x86 dll from x64 one? Pin
Chesnokov Yuriy19-Jan-11 19:00
professionalChesnokov Yuriy19-Jan-11 19:00 

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.