Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <20020302010036.33543.qmail@web20005.mail.yahoo.com> Date: Fri, 1 Mar 2002 17:00:36 -0800 (PST) From: Joshua Daniel Franklin Subject: Re: mkshortcut debugging problem To: cygwin AT cygwin DOT com MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii > On Thu, Feb 28, 2002 at 04:03:34PM -0800, Joshua Daniel Franklin wrote: > > The code that produces this error is: > > > > MultiByteToWideChar (CP_ACP, 0, lname, -1, widepath, MAX_PATH); > > hres = pf->lpVtbl->Save (pf, widepath, TRUE); > > if (!SUCCEEDED(hres)) > > { > > fprintf(stderr, "%s: Save to persistant storage failed (Does the > > directo > > ry you are writing to exist?)\n", prog_name); > > exit(3); > > } > > Try the following before calling pf->lpVtbl->Save(): > > GetCurrentDirectory(dir); > pf->lpVtbl->SetRelativePath(dir); > > This is just basically as it should work. Look in MSDN for the > exact usage. > > Corinna > Tried this, no difference: /usr/src/cygutils-0.9.9/src-gpl$ ./mkshortcut -P http://www.cygwin.com #works /usr/src/cygutils-0.9.9/src-gpl$ cp ./mkshortcut.exe /bin/ /usr/src/cygutils-0.9.9/src-gpl$ /bin/mkshortcut -P http://www.cygwin.com mkshortcut: Save to persistant storage failed (Does the directory you are writing to exist?) Has anyone even seen something like this before? __________________________________________________ Do You Yahoo!? Yahoo! Sports - sign up for Fantasy Baseball http://sports.yahoo.com -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/