32-bit dll to access to memory

M

Thread Starter

monica

I'm trying a 32-bit dll to access to addresses of physical memory under 32-bit Windows. This 32-bit dll is essential for my Labview project. I'm working about DSP, fft analyzer, and I must use Labview 6.1 to execute the visualisation's algorithm reading data to visualize from shared memory (DPRMAM). In my Labview diagram I use "call library function" but I need a function to read from address of physical memory. I have this problem because I'm using Windows 95 (32-bit) while the previous OS was Windows 3.1 (16-bit).

Now I have a 16_bit dll but I need a 32-bit dll.

Thanks.
[email protected]
 
W

Walters Curt L Contr AEDC/SVT

Monique,

Try using Windows API functions to access memory. There is one to copy memory called CopyMemory in the Windows kernel32.dll.

Curt
 
A

Alex Pavloff

You won't be able to do it with without writing or using a device driver.

One library/driver I've used before to access IO Ports (and can access physical memory) is available at http://www.entechtaiwan.com/tools.htm, but
you'll have to pay for it. No, I don't know of any free ways to do this save writing your own device driver, and that's non trivial and will take you much longer.

Alex Pavloff -- [email protected]
Eason Technology --- www.eason.com
--- Linux-based industrial HMI ---
-------- www.eason.com/5k --------
 
F

Friedrich Haase

Moin Monique,
moin Curt.
moin all,

don't think CopyMemory in the Windows kernel32.dll will help you.

If you want use the linear address you can use
LoadLibrary("WOW32.DLL");
and ask for
GetProcAddress(hLibModule,"WOWGetVDMPointerFix");
and some others. Check the Visual C++ help.

If you use the physical address it depends on the Windows flavour - DPMI,
VxD or device driver.

I hope your DP-RAM is in the first 1 MB. I have used the WOW32.DLL to access
memory in that range.

Good luck

regards
Friedrich Haase
 
Top