Solved

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

Posted on 2003-11-14
4
4,890 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
  • 2
4 Comments
 
LVL 4

Accepted Solution

by:
NetPointer earned 500 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: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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Recently while returning home from work my wife (another .NET developer) was murmuring something. On further poking she said that she has been assigned a task where she has to serialize and deserialize objects and she is afraid of serialization. Wha…
In my previous article (http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_3.x/A_4362-Serialization-in-NET-1.html) we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

760 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

18 Experts available now in Live!

Get 1:1 Help Now