?
Solved

Vb.net: How to read/write to memory of another application

Posted on 2003-11-14
4
Medium Priority
?
4,915 Views
Last Modified: 2009-09-26
Hello, am wondering if someone could give example code of how to read and write the value from a memory address in another application using vb(7).net,  Byte and Word values.  I have done this in the past in vb6 but am feeling rather lost in .net.

Thanks in advance for any help

Cos
0
Comment
Question by:CosmoNut
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 4

Accepted Solution

by:
NetPointer earned 2000 total points
ID: 9765980
not in vb7.. its a managed code..u dont have pointers here...

u can use managed extension for C++ for this...

or u can use remoting.

Regards,
NetPointer
0
 
LVL 8

Expert Comment

by:Zlatin Zlatev
ID: 9786769
http://www.javalobby.com/threadMode_printfriendly.jsp?forum=61&thread=4359
http://www.vbdesign.net/expresso/archive/topic/2766.html

Why you need direct memory access?
In .NET you may have it only under VC++.NET in unmanaged code, but it is considered only for device drivers and not for ordinary programs.
To interchange data between applications there are a lot of other options, but not knowing your exact requirements, cannot help you.
Please be more specific.
Kind Regards,
Zlatin
0
 
LVL 1

Author Comment

by:CosmoNut
ID: 9799390
Hi zlatev, for the sake of simplicity what Im looking to do is build a stat tracker for a game server, which I have done in VB6.  For an example here if you could provide a sample that would allow me to read the value in the display box of the calculator and then write that value in the display, not looking for math functions or any calculator functions just read and write to the display, I also dont expect you to go hunting for the memory location of the calc display box,  assume for this that the display is located at address X in ram how would I read it and then write to it?  Also I am looking for a VB.net solution not a VC++.net solution if this is possiable.  

Thanks in advance for any help.

Cos
0
 
LVL 1

Author Comment

by:CosmoNut
ID: 9808419
Was not what I hope to hear, but not your fault thanks for the heads up.
0

Featured Post

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

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

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses

777 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