Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > General Computer Discussion > Software > Need help with C++

Thread Tools

Need help with C++

Omega Omega is offline
Junior Member
Join Date: Jul 2007
Location: nowhere
Posts: 1
I am trying to use a function in my DLL called
BOOL ReadProcessMemory(
  HANDLE hProcess,
  LPCVOID lpBaseAddress,
  LPVOID lpBuffer,
  SIZE_T nSize,
  SIZE_T* lpNumberOfBytesRead
I want to convert a LPVOID variable to a cli::array<Byte^,Dimension>^
Can anyone help, please? Btw, I am kind of a beginner, but I know how to deal with Manged code than unmanaged. I have used this function before in C#, so I know the function reads the values in memory into that variable. Thanks!

BTW, this all written in Managed C++ 2005 in Visual Studio 2005.

here is my existing code
HANDLE hProcess = OpenProcess(PROCESS_VM_READ,true,processId);
UInt32^ dwProcessId = Convert::ToUInt32(hProcess);
array<Byte^,1>^ buffer = gcnew array<Byte^,1>(bufferSize);
LPVOID lBuffer;
SIZE_T *lpNumberOfBytesRead;

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help Help, I am intermediate in Java...need help in follow case ElementX Java 9 10-01-2008 08:02 PM
Help Help. I really need some help with this =?Utf-8?B?Q2hyaXM=?= ASP .Net 3 01-31-2007 09:33 PM
re_---need help Network Adapters!!!! NEED HELP!!!! Computer Support 4 08-13-2006 01:03 AM
Need help! I need to add lead zeros to a textbox Teep ASP .Net 2 06-21-2004 01:04 PM
Please help!!! Need datagrid selection to fill textboxes...Need quick!! TN Bella ASP .Net 1 06-18-2004 01:31 AM