Guest_imported
New member
- Jan 1, 1970
- 0
Hello
I have a old piece of hardware that I want to control with a C++ program. The hardware (a framegrabber) copies it's data to a block in memory space, starting at a certain address. (In this case starting at D0000 H ).
Now, I want to read the data from the memory space. I know that Windows has some sort of dynamic memory management. So that the memory used by a program under Windows, can in fact be located anywhere. If I use pointers, do these pointers point to the dynamic or to real addresses ?
And if I want to read a block of data from the memory, can I read it out in one time, or do I have to read it out byte-by-byte ?
It seems to me that reading a block of data from memory is a very basic operation. So I expected to find many examples, but I couldn't find anything.
Can someone tell me how to do this, or show me an example ?
Harry Smith
I have a old piece of hardware that I want to control with a C++ program. The hardware (a framegrabber) copies it's data to a block in memory space, starting at a certain address. (In this case starting at D0000 H ).
Now, I want to read the data from the memory space. I know that Windows has some sort of dynamic memory management. So that the memory used by a program under Windows, can in fact be located anywhere. If I use pointers, do these pointers point to the dynamic or to real addresses ?
And if I want to read a block of data from the memory, can I read it out in one time, or do I have to read it out byte-by-byte ?
It seems to me that reading a block of data from memory is a very basic operation. So I expected to find many examples, but I couldn't find anything.
Can someone tell me how to do this, or show me an example ?
Harry Smith