Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   where is strstri in script.cpp defined? (http://forums.winamp.com/showthread.php?t=164350)

PerditionC 11th January 2004 16:11

where is strstri in script.cpp defined?
 
I finally compiled a MinGW build that correctly handled user variables (the .ndata section originally was placed before the imports causing fun havoc), and I am updating my source from a few weeks back before submitting a patch. However, script.cpp now seems to make use of strstri, but I can't seem to find where the function/macro is defined.
I'm probably just overlooking it, but would someone please point out where in the source it is defined.

Thanks,
Jeremy

Joost Verburg 11th January 2004 17:17

It's just a case insensitive version of strstr. Just a Windows API function.

Spatacoli 11th January 2004 22:09

I found that I needed to #include <shlwapi.h> to get today's release to compile. Should I have needed to do that?

Joost Verburg 12th January 2004 06:40

There declarion is indeed there. I'll have a look at it later.

PerditionC 12th January 2004 07:52

Thanks, I looked in MinGW's shlwapi.h and it does have StrStrI, I was only looking for strstri.

Joost Verburg 12th January 2004 14:28

Because shlwapi does not exist by default on all Windows versions, I added something else.

It should work fine now.


All times are GMT. The time now is 17:28.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.