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 Date: Fri, 1 Mar 2002 14:00:42 +0100 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: mkshortcut debugging problem Message-ID: <20020301140042.S13590@cygbert.vinschen.de> Mail-Followup-To: cygwin AT cygwin DOT com References: <20020301000334 DOT 69284 DOT qmail AT web20006 DOT mail DOT yahoo DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020301000334.69284.qmail@web20006.mail.yahoo.com> User-Agent: Mutt/1.3.22.1i 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 -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Developer mailto:cygwin AT cygwin DOT com Red Hat, Inc. -- 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/