Click here to Skip to main content
15,867,453 members
Home / Discussions / C#
   

C#

 
AnswerRe: How can I copy a block of memory? Pin
User 66589-Aug-08 2:29
User 66589-Aug-08 2:29 
GeneralRe: How can I copy a block of memory? Pin
CopperCircle9-Aug-08 2:39
CopperCircle9-Aug-08 2:39 
GeneralRe: How can I copy a block of memory? Pin
Guffa9-Aug-08 7:53
Guffa9-Aug-08 7:53 
GeneralRe: How can I copy a block of memory? Pin
CopperCircle9-Aug-08 11:47
CopperCircle9-Aug-08 11:47 
AnswerRe: How can I copy a block of memory? Pin
Guffa9-Aug-08 22:17
Guffa9-Aug-08 22:17 
GeneralRe: How can I copy a block of memory? Pin
CopperCircle10-Aug-08 0:21
CopperCircle10-Aug-08 0:21 
AnswerRe: How can I copy a block of memory? Pin
#realJSOP10-Aug-08 1:19
mve#realJSOP10-Aug-08 1:19 
AnswerRe: How can I copy a block of memory? Pin
CopperCircle10-Aug-08 2:32
CopperCircle10-Aug-08 2:32 
Hi, I found a very quick method in the end using RtlMoveMemory:

[DllImport("kernel32")]
public static extern void RtlMoveMemory(IntPtr dest, IntPtr src, int len);

System.IntPtr pBuffer2 = Marshal.AllocHGlobal(BufferSize); //Assign unmanaged memory
RtlMoveMemory(pBuffer2, pBuffer, BufferSize); //Copy memory
byte* p2 = (byte*)(void*)pBuffer2;
// Use p2 to access image pixels
Marshal.FreeHGlobal(pBuffer2); //Free unmanaged memory


Thanks, for the help and hope this helps some one else.
Questionsend mail using C# Pin
sobhaniir9-Aug-08 0:41
sobhaniir9-Aug-08 0:41 
AnswerRe: send mail using C# PinPopular
Guffa9-Aug-08 0:50
Guffa9-Aug-08 0:50 
RantRe: send mail using C# Pin
User 66589-Aug-08 1:18
User 66589-Aug-08 1:18 
GeneralRe: send mail using C# Pin
Paul Conrad9-Aug-08 6:15
professionalPaul Conrad9-Aug-08 6:15 
GeneralRe: send mail using C# Pin
User 66589-Aug-08 8:24
User 66589-Aug-08 8:24 
GeneralRe: send mail using C# Pin
Paul Conrad9-Aug-08 8:49
professionalPaul Conrad9-Aug-08 8:49 
GeneralRe: send mail using C# Pin
Guffa9-Aug-08 10:10
Guffa9-Aug-08 10:10 
AnswerRe: send mail using C# Pin
Wendelius9-Aug-08 2:35
mentorWendelius9-Aug-08 2:35 
AnswerRe: send mail using C# Pin
mr.mohsen9-Aug-08 6:19
mr.mohsen9-Aug-08 6:19 
QuestionMonth Calender Pin
mrcooll8-Aug-08 23:17
mrcooll8-Aug-08 23:17 
QuestionRead image file Pin
krinaljariwala8-Aug-08 23:15
krinaljariwala8-Aug-08 23:15 
AnswerRe: Read image file Pin
User 66589-Aug-08 0:19
User 66589-Aug-08 0:19 
AnswerRe: Read image file Pin
#realJSOP10-Aug-08 1:20
mve#realJSOP10-Aug-08 1:20 
Questionwindows application deployment error Pin
vishnukamath8-Aug-08 20:46
vishnukamath8-Aug-08 20:46 
AnswerRe: windows application deployment error Pin
Christian Graus8-Aug-08 21:35
protectorChristian Graus8-Aug-08 21:35 
AnswerRe: windows application deployment error Pin
Vimalsoft(Pty) Ltd8-Aug-08 22:46
professionalVimalsoft(Pty) Ltd8-Aug-08 22:46 
QuestionCodeVeil Obfuscator problems Pin
Chapooki8-Aug-08 20:16
Chapooki8-Aug-08 20:16 

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.