Old 25th July 2006, 11:51   #1
Mark Nascimento
Member
 
Join Date: Jul 2006
Posts: 82
StrCmp "" is different of StrCmp " "

Remember this.
After many (...) years using Nsis,
I Almost suicide my own sef by my self (leaking brain)
because of this.
StrCmp "" is different of StrCmp " "
Mark Nascimento is offline   Reply With Quote
Old 25th July 2006, 12:48   #2
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
"" is nothing. " " is a space.

-Stu
Afrow UK is offline   Reply With Quote
Old 25th July 2006, 23:28   #3
Mark Nascimento
Member
 
Join Date: Jul 2006
Posts: 82
Yes. The point is:
When using installoptions, you (I) write:
WriteIniStr x.ini "Field 1" State ""
But installoptions writes -> State=" "
If ReadIniStr reads a space, why don't read '" "' ?
(don't answer this. It's just a cry)
I'm writing this just as one thing to remember.
Mark Nascimento is offline   Reply With Quote
Old 26th July 2006, 09:20   #4
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
So InstallOptions supposedly writes a space " " but when you read from it with ReadINIStr, it's ""?
Perhaps InstallOptions puts a null-escape (\0) character there which usually looks like whitespace in a text editor (in Notepad2 however it comes out as NUL).

-Stu
Afrow UK 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