Article View: borland.public.cppbuilder.nativeapi
Article #1651Re: SHBindToParent problem.
From: patrickartaud
Date: Tue, 26 Jun 2007 17:49
Date: Tue, 26 Jun 2007 17:49
34 lines
2853 bytes
2853 bytes
> It should be located in the (BCB)\lib\psdk folder > make sure you have the \psdk folder listed in your library search paths > ( or maybe change the library to psdk\SHLWAPI.LIB ) > > Thank you very much it was the path in the directories options. It compiles and links very well but when I launch it stop. But now I have an error for StrRetToBuf(&str, pidlItem, szDisplayName, ARRAYSIZE(szDisplayName)); I obtain acces violation at the address 770FE18D.Write at the adress 00000008 The declaration of "buffer" is: char* szDisplayName;//[MAX_PATH];//= L""; // The display name's string for Favorites char* szPath;//[MAX_PATH] = L""; // The path for Favorites. yes I have looked and changed the WCHAR typedef of the example because I had an error "improper use of typedef "WCHAR" and I have looked in the help that was equivalent. I'm not very lucky with this example : http://msdn2.microsoft.com/en-us/library/aa930230.aspx I don't know what I'm doing wrong,I have copied and pasted the example and then done the changes of WCHAR and CSIDL_FAVORITE in CSIDL_APPDATA (I think it is here I could read mine files after create my folder application)Because in ShGetSpecialFolderLocation I have not see CSIGL_COMMON_APPDATA and I ask to me if this is good too for me........... Thank you again Patrick PS: if I bore you,say to me,I would understood . I'm not used with the WinApi
Technical Details
Message-ID:
<468151d0@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!feeder3.cambrium.nl!feed.tweaknews.nl!newsfeed.kamp.net!newsfeed.kamp.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<467c00bc$1@newsgroups.borland.com> <fl1o73tka3i9em1qc6e8259qj5inidost9@4ax.com> <467cccc1@newsgroups.borland.com> <gq7q7313djtvh95k3n69m52drr0ccho44l@4ax.com> <467fdeed$1@newsgroups.borland.com> <la4083dagokmo2f56nc1ap3fqbg4b18e1n@4ax.com> <468124ff@newsgroups.borland.com> <4rb283tf5al4nlgfprsmana1fmcr8o60lb@4ax.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,dbc285481b02e32d X-Google-Attributes: gid10cc67,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: "patrickartaud" <patrickartaud@aidedecision.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <467c00bc$1@newsgroups.borland.com> <fl1o73tka3i9em1qc6e8259qj5inidost9@4ax.com> <467cccc1@newsgroups.borland.com> <gq7q7313djtvh95k3n69m52drr0ccho44l@4ax.com> <467fdeed$1@newsgroups.borland.com> <la4083dagokmo2f56nc1ap3fqbg4b18e1n@4ax.com> <468124ff@newsgroups.borland.com> <4rb283tf5al4nlgfprsmana1fmcr8o60lb@4ax.com> In-Reply-To: <4rb283tf5al4nlgfprsmana1fmcr8o60lb@4ax.com> Subject: Re: SHBindToParent problem. Date: Tue, 26 Jun 2007 19:49:31 +0200 Lines: 35 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Windows Mail 6.0.6000.16480 X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6000.16480 NNTP-Posting-Host: 82.228.58.174 Message-ID: <468151d0@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1182880208 82.228.58.174 (26 Jun 2007 10:50:08 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!feeder3.cambrium.nl!feed.tweaknews.nl!newsfeed.kamp.net!newsfeed.kamp.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail