From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3339 invoked by alias); 1 Mar 2002 13:00:51 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Received: (qmail 3258 invoked from network); 1 Mar 2002 13:00:45 -0000 Received: from unknown (HELO cygbert.vinschen.de) (217.229.48.250) by sources.redhat.com with SMTP; 1 Mar 2002 13:00:45 -0000 Received: (from corinna@localhost) by cygbert.vinschen.de (8.11.6/8.9.3/Linux sendmail 8.9.3) id g21D0gw30329 for cygwin@cygwin.com; Fri, 1 Mar 2002 14:00:42 +0100 Date: Fri, 01 Mar 2002 05:00:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: mkshortcut debugging problem Message-ID: <20020301140042.S13590@cygbert.vinschen.de> Mail-Followup-To: cygwin@cygwin.com References: <20020301000334.69284.qmail@web20006.mail.yahoo.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 X-SW-Source: 2002-03/txt/msg00008.txt.bz2 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@cygwin.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/