The platform SDK mentions nothing of this, so what's going on? Is it because
the program was linked on a Win2000 machine?
I've got round the problem so far by writing my own version of StrStr, but
this seems a bit wasteful... but if StrStr won't work on Win9x, it seems I
have no choice...
Ta
Phil, just me
Regards
Chris
..or use standard strstr() from C/C++ Runtime Library.
> > Link against SHLWAPI.DLL.
> > There are no string commands in SHELL32.DLL on the "old" types of
> > Windows: 95, 98 or ME
>
> ..or use standard strstr() from C/C++ Runtime Library.
I'm trying to avoid that to get round this CRT/CreateThread malarkey... I've
no idea what it is other than 'bad' so I thought it'd be easier if I just
avoided any functions from it. Which isn't too bad; the only function I've
not found in the Win32 API is atoi(), but I managed to find the source and
it's tiny anyway, so that's not a problem.
If I link with shlwapi.dll will it know to use that rather than the Shell32
one? I seem to remember I'm #including shlwapi.h but I don't recall linking
to it...
Ta muchly,
Phil, just me
StrStr is in Shlwapi.dll (version 4.71), not in Shell32.
According to Platform SDK it is available on Win98.
You can investigate Shlwapi.dll on your Win98 machine.
Get the version, run dumpbin, etc...
Regards,
Michael
>the only function I've
>not found in the Win32 API is atoi(), but I managed to find the source and
>it's tiny anyway, so that's not a problem.
In SHLWAPI there is also StrToInt which is the equivalent to atoi in
MSVCRT.
Regards
Chris
> In SHLWAPI there is also StrToInt which is the equivalent to atoi in
> MSVCRT.
Ooo, handy... ta...
Phil, just me
All you need to do to ensure the CRT works is to use _beginthreadex instead
of CreateThread. Still a pain, though.
Andy