Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hi all, anyone knows how to make this in VB .NET ?

 

The function AscB is not yet supported by .NET.

 

fnclngLeftShift(AscB(Mid(strMissatge, lngContByte + 1, 1)), lngPosByte)

 

The problem is in the AscB function. I don't know, how to do this, or how to substitute the AscB function.

 

Sorry for my english.

 

Thanks.

Posted

The AscB function is used in a procedure, that converts a string in a byte array of that string.

 

The objective it's make an implementation of the MD4 message-digest algorithm.

 

I'm only want to know if anyone knows how I can get the first byte of one char of a string.

 

 

Thanks

  • *Experts*
Posted

You can convert a string to a byte array like this:

Dim bArray() As Byte

bArray = System.Text.ASCIIEncoding.ASCII.GetBytes(myString)

 

Yay! 500th post! :)

Posted

Thanks for the answer, but the AscB function, returns only the first byte of a character, I don't want the entire collection.

 

I don't know if I'm explaining well, sorry for my english.

 

Thanks

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...