Solved

hmemcpy and images

Posted on 1998-12-11
3
158 Views
Last Modified: 2010-05-03
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?
0
Comment
Question by:zambi
  • 2
3 Comments
 
LVL 8

Expert Comment

by:MikeP090797
Comment Utility
Try this declare:
Declare Sub MoveMemory Lib "kernel32" Alias "RtlMoveMemory"  (pDest As Any,pSource As Any, ByVal dwLength As Long)
0
 
LVL 8

Expert Comment

by:MikeP090797
Comment Utility
replace kernel32 with kernel
0
 
LVL 2

Accepted Solution

by:
JiaH earned 200 total points
Comment Utility
How about send the first item of the byte array to the pointer? Such as this:
 lPointer = byteA(0)
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now