hmemcpy and images

I have a byte array that holds a jpg image.
I have a pointer to some memory i've allocated.
I need to move or copy this to the pointer.
i'm using vb 4.0 16bit
i've tried using hmemcpy but with no luck.
Is it possible if so how?
zambiAsked:
Who is Participating?
 
JiaHCommented:
How about send the first item of the byte array to the pointer? Such as this:
 lPointer = byteA(0)
0
 
MikeP090797Commented:
Try this declare:
Declare Sub MoveMemory Lib "kernel32" Alias "RtlMoveMemory"  (pDest As Any,pSource As Any, ByVal dwLength As Long)
0
 
MikeP090797Commented:
replace kernel32 with kernel
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.