Click here to Skip to main content
15,797,062 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionhow to draw oscilloscope graph when we import wmp3 file in vc++ Pin
rajniyadav1a20-Jan-11 0:15
rajniyadav1a20-Jan-11 0:15 
AnswerRe: how to draw oscilloscope graph when we import wmp3 file in vc++ Pin
Cedric Moonen20-Jan-11 0:23
Cedric Moonen20-Jan-11 0:23 
QuestionDavAddConnection example [modified] Pin
ShadowUz19-Jan-11 23:14
ShadowUz19-Jan-11 23:14 
AnswerRe: DavAddConnection examle Pin
Andrew Brock19-Jan-11 23:30
Andrew Brock19-Jan-11 23:30 
GeneralRe: DavAddConnection examle Pin
ShadowUz19-Jan-11 23:37
ShadowUz19-Jan-11 23:37 
GeneralRe: DavAddConnection examle Pin
Andrew Brock19-Jan-11 23:46
Andrew Brock19-Jan-11 23:46 
AnswerRe: DavAddConnection examle Pin
Andrew Brock19-Jan-11 23:53
Andrew Brock19-Jan-11 23:53 
GeneralRe: DavAddConnection example Pin
ShadowUz20-Jan-11 19:14
ShadowUz20-Jan-11 19: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 19:37
Andrew Brock20-Jan-11 19:37 
GeneralRe: DavAddConnection example Pin
ShadowUz20-Jan-11 19:50
ShadowUz20-Jan-11 19:50 
GeneralRe: DavAddConnection example Pin
Andrew Brock20-Jan-11 20:05
Andrew Brock20-Jan-11 20:05 
AnswerRe: DavAddConnection example Pin
micktsai21-Jan-11 1:55
micktsai21-Jan-11 1:55 
QuestionHow to use ActiveX control in win32? Pin
mathivanaan19-Jan-11 23:12
mathivanaan19-Jan-11 23:12 
AnswerRe: How to use ActiveX control in win32? Pin
_AnsHUMAN_ 19-Jan-11 23:29
_AnsHUMAN_ 19-Jan-11 23:29 
GeneralRe: How to use ActiveX control in win32? Pin
Stephen Hewitt20-Jan-11 0:14
Stephen Hewitt20-Jan-11 0:14 
AnswerRe: How to use ActiveX control in win32? Pin
Cedric Moonen19-Jan-11 23:35
Cedric Moonen19-Jan-11 23:35 
QuestionCountry Name Pin
john563219-Jan-11 22:26
john563219-Jan-11 22:26 
AnswerRe: Country Name Pin
_AnsHUMAN_ 19-Jan-11 22:36
_AnsHUMAN_ 19-Jan-11 22:36 
GeneralRe: Country Name Pin
john563219-Jan-11 22:53
john563219-Jan-11 22:53 
GeneralRe: Country Name Pin
Richard MacCutchan20-Jan-11 2:46
mveRichard MacCutchan20-Jan-11 2:46 
QuestionHow can check which FormView is currectly visible? Pin
Le@rner19-Jan-11 21:21
Le@rner19-Jan-11 21:21 
AnswerRe: How can check which FormView is currectly visible? Pin
Andrew Brock19-Jan-11 21:38
Andrew Brock19-Jan-11 21:38 
GeneralRe: How can check which FormView is currectly visible? Pin
Le@rner19-Jan-11 21:55
Le@rner19-Jan-11 21:55 
GeneralRe: How can check which FormView is currectly visible? Pin
Andrew Brock19-Jan-11 22:24
Andrew Brock19-Jan-11 22:24 
QuestionCalling x86 dll from x64 one? Pin
Chesnokov Yuriy19-Jan-11 20:00
professionalChesnokov Yuriy19-Jan-11 20: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.