wxFileProto

Raquib alam Raquib.alam at efi.com
Tue Dec 4 01:31:51 PST 2007


Hi,
I am using wxFileProto class to get the input stream from a shared location. 
Files are shared on Mac machine and I am running application from on windows
machine through a Windows NT service. wxFileProto:: GetInputStream() failing
with error code wxPROTO_NOFILE. I have already manually mounted the mac
machine. Can anyone help me out from this? 

Code snipent:

		wxString wxFileURL = fileURL.c_str();
		const wchar_t toReplace[] = _T("%20");
		const wchar_t replaceWith[] = _T(" ");
		
		wxFileURL.Replace(toReplace, replaceWith, true);

		wxFileProto fileProto;
		wxFileName inputFileName =
wxFileSystem::URLToFileName(wxFileURL);
		wxInputStream *inputStreamP = fileProto.GetInputStream(
				inputFileName.GetFullPath());

		if (inputStreamP == NULL) {
			return fileProto. GetError ();
		}

Thanks & Regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wx-users/attachments/20071204/f1e97bd2/attachment.htm


More information about the wx-users mailing list