Exetools  

Go Back   Exetools > General > General Discussion

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 08-02-2006, 07:10
TmC TmC is offline
VIP
 
Join Date: Aug 2004
Posts: 328
Rept. Given: 1
Rept. Rcvd 15 Times in 9 Posts
Thanks Given: 2
Thanks Rcvd at 22 Times in 16 Posts
TmC Reputation: 15
Numbering Systems

Hi, today i have a question that is a bit far from cracking but it fits the reverse eingeneering and programming tasks:

I'm coding in visual basic a tool for a friend that converts strings betwen bases.

I am stuck into 3 conversions:

Octal to String
String to Base60
Base60 to String

Is there a way to convert octal to string? (or octal to hexadecimal so then use hexadecimal to string?)
Does someone have sample sources in visual basic? I searched through planet source code but it does not have something like that or has something that overflows.

As for base60:
I know that base64 has A->Z, a->z, 0->9, +/
What get's off in base60? +/ and...what?
Anyone can help me?

Thanks in advance to all.
Reply With Quote
  #2  
Old 08-02-2006, 14:16
Nacho_dj's Avatar
Nacho_dj Nacho_dj is offline
Lo*eXeTools*rd
 
Join Date: Mar 2005
Posts: 207
Rept. Given: 14
Rept. Rcvd 179 Times in 34 Posts
Thanks Given: 44
Thanks Rcvd at 134 Times in 40 Posts
Nacho_dj Reputation: 100-199 Nacho_dj Reputation: 100-199
Hello:

Here you can find a function converting from some bases to string.
hxxp://www.recursosvisualbasic.com.ar/htm/trucos-codigofuente-visual-basic/36.htm

To convert from octal to string there is the function Oct:
hxxp://msdn2.microsoft.com/en-us/library/3yyk62cc.aspx

Some conversion examples:
hxxp://support.microsoft.com/default.aspx?scid=kb%3Ben%3B31789

Hope this helps

Nacho_dj
__________________
http://arteam.accessroot.com
Reply With Quote
Reply

Thread Tools
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 Off
HTML code is Off



All times are GMT +8. The time now is 15:42.


Always Your Best Friend: Aaron, JMI, ahmadmansoor, ZeNiX, chessgod101
( 1998 - 2024 )