From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3903 invoked by alias); 7 Dec 2001 20:53:19 -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 3869 invoked from network); 7 Dec 2001 20:53:09 -0000 Received: from unknown (HELO ligarius-fe0.ultra.net) (146.115.8.189) by sources.redhat.com with SMTP; 7 Dec 2001 20:53:09 -0000 Received: from enterprise-e.Starfleet.com (207-172-255-43.s1059.apx1.sbo.ma.dialup.rcn.com [207.172.255.43]) by ligarius-fe0.ultra.net (8.8.8/ult/n26500/mtc.v2) with ESMTP id PAA26249; Fri, 7 Dec 2001 15:52:35 -0500 (EST) Message-Id: <4.3.1.2.20011207155014.0164bd20@pop.ma.ultranet.com> X-Sender: lhall@pop.ma.ultranet.com X-Mailer: QUALCOMM Windows Eudora Version 4.3.1 Date: Fri, 07 Dec 2001 13:27:00 -0000 To: Laszlo Vecsey , cygwin@cygwin.com From: "Larry Hall (RFK Partners, Inc)" Subject: Re: creating shortcuts.. question In-Reply-To: <001101c17f5b$91e43c50$7c00a8c0@spacenexus> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-SW-Source: 2001-12/txt/msg00436.txt.bz2 At 03:13 PM 12/7/2001, Laszlo Vecsey wrote: >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. Why don't you look at the Cygwin DLL source and see how it's done there? Larry Hall lhall@rfk.com RFK Partners, Inc. http://www.rfk.com 838 Washington Street (508) 893-9779 - RFK Office Holliston, MA 01746 (508) 893-9889 - FAX -- 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/