Click here to Skip to main content
15,891,204 members
Home / Discussions / C#
   

C#

 
GeneralRe: User Validation Error Pin
CodingYoshi4-Apr-08 8:02
CodingYoshi4-Apr-08 8:02 
GeneralRe: User Validation Error Pin
MumbleB4-Apr-08 8:07
MumbleB4-Apr-08 8:07 
GeneralRe: User Validation Error Pin
Pete O'Hanlon4-Apr-08 8:49
mvePete O'Hanlon4-Apr-08 8:49 
QuestionPoint & Pixel Pin
nike_arh4-Apr-08 7:27
nike_arh4-Apr-08 7:27 
GeneralRe: Point & Pixel Pin
KaptinKrunch4-Apr-08 7:32
KaptinKrunch4-Apr-08 7:32 
GeneralRe: Point & Pixel Pin
nike_arh4-Apr-08 7:51
nike_arh4-Apr-08 7:51 
General.NET Remoting Pin
CodingYoshi4-Apr-08 7:21
CodingYoshi4-Apr-08 7:21 
GeneralMD5 checksum on unmanaged array Pin
bnb4-Apr-08 6:52
bnb4-Apr-08 6:52 
Hi,


I have an issue where I get a pointer to unmanaged data (along with the number of bytes allocated) from a device and I need to perform a checksum on this data. While I have found plenty of information to pin a managed array and feed that to a C library call, I have been unable to find any methods for going to other way around.

public static byte[] MD5Checksum(unsigned char* data, int dataLength){<br />
<br />
  // this is the magical method which I am looking for<br />
  byte[] unmanagedWrapper = MagicalMethodToWrapUnmanagedArray(data, dataLength);<br />
<br />
  // call the MD5 checksum<br />
  return System.Security.Cryptography.MD5.Create().ComputeHash(unmanagedWrapper);<br />
}


Thanks in advance!
B
GeneralRe: MD5 checksum on unmanaged array Pin
CodingYoshi4-Apr-08 7:34
CodingYoshi4-Apr-08 7:34 
GeneralDisplay ArrayList in ListBox Pin
hbez4-Apr-08 5:40
hbez4-Apr-08 5:40 
GeneralRe: Display ArrayList in ListBox Pin
Luc Pattyn4-Apr-08 5:50
sitebuilderLuc Pattyn4-Apr-08 5:50 
GeneralRe: Display ArrayList in ListBox Pin
phannon864-Apr-08 5:53
professionalphannon864-Apr-08 5:53 
GeneralRe: Display ArrayList in ListBox Pin
hbez4-Apr-08 6:08
hbez4-Apr-08 6:08 
GeneralRe: Display ArrayList in ListBox Pin
Luc Pattyn4-Apr-08 6:42
sitebuilderLuc Pattyn4-Apr-08 6:42 
GeneralRe: Display ArrayList in ListBox Pin
hbez4-Apr-08 20:12
hbez4-Apr-08 20:12 
QuestionListView.SelectedIndexChanged fired too much Pin
C-Scharbe4-Apr-08 5:26
C-Scharbe4-Apr-08 5:26 
GeneralRe: ListView.SelectedIndexChanged fired too much Pin
Luc Pattyn4-Apr-08 5:53
sitebuilderLuc Pattyn4-Apr-08 5:53 
GeneralRe: ListView.SelectedIndexChanged fired too much Pin
C-Scharbe4-Apr-08 5:59
C-Scharbe4-Apr-08 5:59 
GeneralRe: ListView.SelectedIndexChanged fired too much Pin
Luc Pattyn4-Apr-08 6:45
sitebuilderLuc Pattyn4-Apr-08 6:45 
GeneralRe: ListView.SelectedIndexChanged fired too much Pin
mav.northwind5-Apr-08 4:16
mav.northwind5-Apr-08 4:16 
GeneralRe: ListView.SelectedIndexChanged fired too much Pin
Luc Pattyn5-Apr-08 4:47
sitebuilderLuc Pattyn5-Apr-08 4:47 
GeneralRe: ListView.SelectedIndexChanged fired too much Pin
C-Scharbe6-Apr-08 22:26
C-Scharbe6-Apr-08 22:26 
GeneralRe: ListView.SelectedIndexChanged fired too much Pin
C-Scharbe6-Apr-08 22:24
C-Scharbe6-Apr-08 22:24 
GeneralRe: ListView.SelectedIndexChanged fired too much Pin
mav.northwind7-Apr-08 7:52
mav.northwind7-Apr-08 7:52 
QuestionRe: ListView.SelectedIndexChanged fired too much Pin
C-Scharbe16-Apr-08 4:20
C-Scharbe16-Apr-08 4:20 

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.