Click here to Skip to main content
15,905,028 members
Home / Discussions / C#
   

C#

 
GeneralMS ACCESS / Web + Desktop Application Pin
s3rro20-Dec-07 5:03
s3rro20-Dec-07 5:03 
GeneralRe: MS ACCESS / Web + Desktop Application Pin
J$20-Dec-07 5:40
J$20-Dec-07 5:40 
GeneralActiveDirectory - getting a lit of users in a group Pin
RugbyLeague20-Dec-07 5:01
RugbyLeague20-Dec-07 5:01 
GeneralRe: ActiveDirectory - getting a lit of users in a group Pin
Giorgi Dalakishvili20-Dec-07 5:14
mentorGiorgi Dalakishvili20-Dec-07 5:14 
GeneralRe: ActiveDirectory - getting a lit of users in a group Pin
RugbyLeague20-Dec-07 5:26
RugbyLeague20-Dec-07 5:26 
GeneralRe: ActiveDirectory - getting a lit of users in a group Pin
RugbyLeague20-Dec-07 5:36
RugbyLeague20-Dec-07 5:36 
QuestionString data into byte array without hex conversion Pin
worked on mine20-Dec-07 3:55
worked on mine20-Dec-07 3:55 
GeneralRe: String data into byte array without hex conversion Pin
DannyAdler20-Dec-07 4:53
DannyAdler20-Dec-07 4:53 
Hi there,

Maybe this will put you in the right track:

string StringToConvert = "abc";<br />
//This call will return a byte array with the numeric values of the chars<br />
byte[] bytes = StringToByteArray(StringToConvert);<br />
<br />
private byte[] StringToByteArray(string str)<br />
{<br />
    char[] chars = str.ToCharArray();<br />
    byte[] bytes = Array.ConvertAll<char, byte="">(chars, new Converter<char, byte="">(CharToByte));<br />
    return bytes;<br />
}<br />
private byte CharToByte(char ch) { return (byte)ch; }</char,></char,>



Hope it helps.

Danny
GeneralRe: String data into byte array without hex conversion Pin
worked on mine20-Dec-07 5:32
worked on mine20-Dec-07 5:32 
GeneralRe: String data into byte array without hex conversion Pin
DannyAdler20-Dec-07 22:29
DannyAdler20-Dec-07 22:29 
GeneralRe: String data into byte array without hex conversion Pin
DannyAdler20-Dec-07 22:34
DannyAdler20-Dec-07 22:34 
GeneralRe: String data into byte array without hex conversion Pin
J4amieC20-Dec-07 5:58
J4amieC20-Dec-07 5:58 
GeneralExcel Object Pin
gauthee20-Dec-07 3:36
gauthee20-Dec-07 3:36 
GeneralRe: Excel Object Pin
Not Active20-Dec-07 3:42
mentorNot Active20-Dec-07 3:42 
GeneralDLL Pin
anupamwb20-Dec-07 2:55
anupamwb20-Dec-07 2:55 
GeneralRe: DLL Pin
J4amieC20-Dec-07 3:01
J4amieC20-Dec-07 3:01 
GeneralRe: DLL Pin
Luc Pattyn20-Dec-07 10:07
sitebuilderLuc Pattyn20-Dec-07 10:07 
GeneralRe: DLL Pin
Colin Angus Mackay20-Dec-07 3:15
Colin Angus Mackay20-Dec-07 3:15 
GeneralRe: DLL Pin
anupamwb20-Dec-07 8:40
anupamwb20-Dec-07 8:40 
GeneralRe: DLL Pin
fearless20-Dec-07 11:22
fearless20-Dec-07 11:22 
GeneralRe: DLL Pin
Paul Conrad23-Dec-07 7:28
professionalPaul Conrad23-Dec-07 7:28 
GeneralRe: DLL Pin
fearless20-Dec-07 3:17
fearless20-Dec-07 3:17 
GeneralRe: DLL Pin
Pete O'Hanlon20-Dec-07 3:39
mvePete O'Hanlon20-Dec-07 3:39 
GeneralRe: DLL Pin
darkelv20-Dec-07 4:32
darkelv20-Dec-07 4:32 
GeneralRe: DLL Pin
fearless20-Dec-07 4:53
fearless20-Dec-07 4:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.