From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12186 invoked by alias); 7 Dec 2001 20:04:15 -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 12154 invoked from network); 7 Dec 2001 20:04:10 -0000 Received: from unknown (HELO mta2.srv.hcvlny.cv.net) (167.206.5.5) by sources.redhat.com with SMTP; 7 Dec 2001 20:04:10 -0000 Received: from spacenexus (ool-4350b870.dyn.optonline.net [67.80.112.184]) by mta2.srv.hcvlny.cv.net (iPlanet Messaging Server 5.0 Patch 2 (built Dec 14 2000)) with SMTP id <0GNZ00HGTP2VUH@mta2.srv.hcvlny.cv.net> for cygwin@cygwin.com; Fri, 07 Dec 2001 15:04:07 -0500 (EST) Date: Fri, 07 Dec 2001 12:43:00 -0000 From: Laszlo Vecsey Subject: creating shortcuts.. question To: cygwin@cygwin.com Message-id: <001101c17f5b$91e43c50$7c00a8c0@spacenexus> MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Mailer: Microsoft Outlook Express 6.00.2600.0000 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: 7BIT X-Priority: 3 X-MSMail-priority: Normal X-SW-Source: 2001-12/txt/msg00434.txt.bz2 I'm using the CreateLink example from the platform sdk but I'm having trouble getting it to work. I checked the archives and there were three posts related to this but not enough to help me, I need some clarification on one of them too. I've made a short example of where I'm left running into trouble -- this is run against the latest cygwin for windows as I've just upgraded it with setup again this morning. -- #include #include int main() { IShellLink* psl; psl->SetPath("testing"); psl->SetDescription("string"); } -- gcc conf1.c -o conf1 -lshell32 conf1.c: In function 'main': conf1.c:8: structure has no member named 'SetPath' conf1.c:9: structure has no member named 'SetDescription' I checked the include files and they do show STDMETHOD wrappers within the IShellLinkA and IShellLinkW structures. I compiled with -save-temps as well and they show up in the conf1.i file as follows: HRESULT(__attribute__((__stdcall__)) * Resolve ) (IShellLinkA *, HWND,DWORD) ; HRESULT(__attribute__((__stdcall__)) * SetPath ) (IShellLinkA *, LPCSTR) ; Does everything look correct? I realize the above C example won't do anything functional however I'm confused as to whats causing it to fail compiling. -- 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/