Old 11th January 2004, 16:11   #1
PerditionC
Junior Member
 
Join Date: Jan 2003
Posts: 27
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
PerditionC is offline   Reply With Quote
Old 11th January 2004, 17:17   #2
Joost Verburg
NSIS MUI Dev
 
Join Date: Nov 2001
Posts: 3,717
It's just a case insensitive version of strstr. Just a Windows API function.
Joost Verburg is offline   Reply With Quote
Old 11th January 2004, 22:09   #3
Spatacoli
Junior Member
 
Join Date: Jan 2004
Posts: 24
Send a message via ICQ to Spatacoli
I found that I needed to #include <shlwapi.h> to get today's release to compile. Should I have needed to do that?
Spatacoli is offline   Reply With Quote
Old 12th January 2004, 06:40   #4
Joost Verburg
NSIS MUI Dev
 
Join Date: Nov 2001
Posts: 3,717
There declarion is indeed there. I'll have a look at it later.
Joost Verburg is offline   Reply With Quote
Old 12th January 2004, 07:52   #5
PerditionC
Junior Member
 
Join Date: Jan 2003
Posts: 27
Thanks, I looked in MinGW's shlwapi.h and it does have StrStrI, I was only looking for strstri.
PerditionC is offline   Reply With Quote
Old 12th January 2004, 14:28   #6
Joost Verburg
NSIS MUI Dev
 
Join Date: Nov 2001
Posts: 3,717
Because shlwapi does not exist by default on all Windows versions, I added something else.

It should work fine now.

Last edited by Joost Verburg; 12th January 2004 at 17:08.
Joost Verburg is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump