Old 13th June 2003, 18:34   #1
kelvlam
Junior Member
 
Join Date: Jun 2003
Posts: 3
Get machine IP (without the ";")

I searched the forums and already using the ip.dll already. But whenever I do this:
CallInstDll ip.dll get_ip
Pop $0

I get a string saying "xxx.xxx.xxx.xxx;" with the semi colon at the end. I haven't found any function and just don't know how I can strip that semi colon at the end of the string. Anyone know how?
kelvlam is offline   Reply With Quote
Old 13th June 2003, 19:06   #2
banaman8d
Junior Member
 
Join Date: May 2003
Posts: 19
You strip the semicolon using the StrCpy function:

; This strips the last letter off the end of $R0
StrCpy $R0 "192.168.0.2;" -1 ;$R0 now contains '192.168.0.2'
banaman8d 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