Solved

Hmemcpy, CopyMemory, rtlMoveMemory

Posted on 1998-12-14
2
663 Views
Last Modified: 2012-06-27
In a VB3 program I call the kernel routine HmemCopy.

In VB6 I've been trying to do the equivalent using kernel32 and either CopyMemory or rtlMoveMemory but have been unsuccessful.  What is the equivalent procedure.  You need to show the proper DECLARE statement and the command line such as CopyMemory(destination,source,len).  Thanks in advance and good luck.
0
Comment
Question by:boatboy
2 Comments
 
LVL 14

Accepted Solution

by:
waty earned 60 total points
ID: 1450025
Private Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" (dest As Any, Source As Any, ByVal bytes As Long)
Private Declare Sub ZeroMemory Lib "kernel32" Alias "RtlZeroMemory" (dest As Any, ByVal bytes As Long)

0
 

Author Comment

by:boatboy
ID: 1450026
Thanks...watch for new question on

REQUEST FOR DDE ON CHANNEL NOT OPEN
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

789 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