Memory Access Via Vb

CodingFiend
12-22-2000, 09:27 AM
Ok, I've been doing DirectX stuff in c++ (and use c++ in work--sigh, no VB for about a half-year). I have a really basic question.

In c/c++ when you lock a directx surface, you get back a pointer that you write to for setting pixels. If you get back an address in VB, how do you write to the memory? I want to convert my line drawing library to VB for creating a vector graphics game (asteroids, whatever), but need to know how to get an address and write to it. The only DirecX 7 VB samples I see in the SDK use the blitter--no line drawing.

Thanks!

It's better to burn out than to fade away!

Derek Stone
12-22-2000, 01:17 PM
I believe you are looking to use the FillMemory and CopyMemory API fuctions.
You can find out how to use them at <a href="http://www.vbapi.com">VB API</a>

Good Luck
-cl

<a href="http://vb.wsoftware.net" target="_new">http://vb.wsoftware.net</a>

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum