Old 4th May 2010, 21:25   #1
aerDNA
Senior Member
 
aerDNA's Avatar
 
Join Date: Feb 2007
Location: Rijeka, Croatia
Posts: 225
Hex <-> Bin

I need to convert hex to bin and back. Searching the forum, I managed to find working Hex2Bin and Bin2Hex functions which I can use. But is there really no simple way of hex<->bin conversion in nsis, not even through some header or a plugin?

PostEnd:
aerDNA is offline   Reply With Quote
Old 4th May 2010, 21:36   #2
Wizou
Senior Member
 
Join Date: Aug 2007
Location: Paris, France
Posts: 304
check nsisFile plugin : http://wiz0u.free.fr/prog/nsisFile/
Wizou is offline   Reply With Quote
Old 4th May 2010, 22:39   #3
aerDNA
Senior Member
 
aerDNA's Avatar
 
Join Date: Feb 2007
Location: Rijeka, Croatia
Posts: 225
Thanks, Wizou, it's a great plugin but not what I was looking for. Your functions have ansi input or output and I'm not working with files, what I need is "calculator mode" (2A = 101010).

PostEnd:
aerDNA is offline   Reply With Quote
Old 4th May 2010, 22:59   #4
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
What is the problem with using an NSIS function?

Stu
Afrow UK is offline   Reply With Quote
Old 4th May 2010, 23:04   #5
aerDNA
Senior Member
 
aerDNA's Avatar
 
Join Date: Feb 2007
Location: Rijeka, Croatia
Posts: 225
No problem at all, I was just wondering.

PostEnd:
aerDNA is offline   Reply With Quote
Old 4th May 2010, 23:59   #6
Wizou
Senior Member
 
Join Date: Aug 2007
Location: Paris, France
Posts: 304
Quote:
Originally Posted by aerDNA View Post
Thanks, Wizou, it's a great plugin but not what I was looking for. Your functions have ansi input or output and I'm not working with files, what I need is "calculator mode" (2A = 101010).
ah, you *really* meant "binary" as in "binary with zeroes and ones" sorry hehe
Wizou 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