I'll try to give you all the info I have, let me know if I'm missing the
point completely :-)
On Thu, 2008-06-12 at 21:20 -0700, eehouse.org wrote:
> > Shouldn't you use SHGetSpecialFolderPath() ?
> >
> > I've found little decent reference material to the function you mention,
> > and just about the only relatively official one mentioned that this
> > function is deprecated.
>
> Well, this page says SHGetSpecialFolderPath is superseded by
> ShGetFolderPath:
>
> http://msdn.microsoft.com/en-us/library/bb762204(VS.85).aspx
>
> Frankly, I'll take any that works. :-)
http://msdn.microsoft.com/en-us/library/bb762181(VS.85).aspx says
the opposite. Oh well.
> > SHGetSpecialFolderPath is in our coredll.def file, and I remember using
> > it recently in a test program.
>
> In the tree I have it's defined only in the win32, not cegcc, APIs.
>
> ==> find ~/src/cegcc/cegcc/src/ -name '*.def' | xargs grep
> SHGetSpecialFolderPathW
> /home/eehouse/src/cegcc/cegcc/src/w32api/lib/shell32.def:[EMAIL PROTECTED]
dannypc: {30} find . -name \*.def -exec grep SHGetSpecialFolderPath {} \; -print
SHGetSpecialFolderPath
./cegcc/importlibs/defs/coredll.def
SHGetSpecialFolderPath
./mingw/coredll.def
[EMAIL PROTECTED]
[EMAIL PROTECTED]
./w32api/lib/shell32.def
SHGetSpecialFolderPath
./w32api/libce/coredll.def
dannypc: {31}
Also it's there :
dannypc: {26}
arm-mingw32ce-nm /opt/mingw32ce/arm-mingw32ce/lib/libcoredll.a | grep
Folder
00000000 T SHGetSpecialFolderPath
00000000 I __imp_SHGetSpecialFolderPath
dannypc: {27}
But I sometimes have stuff that's different from SVN :-). The
coredll.def files are in sync though.
> /home/eehouse/dev/sf/WINCE_SVN/wince/cedict.c:637: undefined reference to
> `SHGetSpecialFolderPathW'
> /home/eehouse/dev/sf/WINCE_SVN/wince/cedict.c:643: undefined reference to
> `FindFirstFlashCard'
The FindFirstFlashCard function is in -lnote_prj just like MSDN says.
A very dumb program that demonstrates use of SHGetSpecialFolderPath is
attached. (It takes a while to complete...) I've put the compiled
version on http://danny.backx.info/download/x.exe .
An example on how to use FindFirstFlashCard is in the roadmap sources
(http://roadmap.cvs.sourceforge.net/roadmap/roadmap/src/win32/roadmap_path.c?view=log).
and an executable containing this is at
http://danny.backx.info/download/roadmap-20080530.tar.gz . You can't see with
objdump that it uses note_prj because it loads it dynamically, see the source.
I was told to do this to avoid WinCE version trouble.
Danny
--
Danny Backx ; danny.backx - at - scarlet.be ; http://danny.backx.info
#include <windows.h>
main()
{
wchar_t b[64];
int i;
char *s[64];
FILE *f;
f = fopen("/storage card/devel/x.out", "w");
for (i=0; i<65536; i++) {
SHGetSpecialFolderPath(0, b, i, 0);
wcstombs(s, b, 64);
if (s[0] != '\0' && s[0] != '\\')
fprintf(f, "%d - %s\n", i, s);
}
fclose(f);
}
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Cegcc-devel mailing list
Cegcc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cegcc-devel