|
-
Dec 19th, 2000, 01:07 PM
#1
Thread Starter
Hyperactive Member
Hi all,
I wrote some ATL data aquisition code that can pull in a large amount of data from an A/D card. My problem is that I would like to share this data with a 3D graphing control as well as some custom analysis routines. I need to be able to have multiple data sets in memory, so that I can display and / or analyze them at will.
Is there are way to do this from VB without continually copying safe arrays from the ATL control? Could I say, set up a collection of Windows memory handles that could then be passed to and accessed by different controls?
Does anyone have experience with this sort of thing? Any suggestions would be appreciated...
-scott
he he he
-
Dec 19th, 2000, 01:12 PM
#2
Monday Morning Lunatic
The API heap functions should help here. Use GlobalAlloc to allocate a handle to some memory, then pass that around.
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Dec 19th, 2000, 01:21 PM
#3
Thread Starter
Hyperactive Member
thanks I'll try that...
For some reason I didn't think that I could get at that function from VB. I'm using the heap operations in VC. Thanks for waking me up.
-scott
he he he
-
Dec 21st, 2000, 12:45 PM
#4
Lively Member
here are the declorations for Global*
Code:
Public Declare Function GlobalAlloc Lib "kernel32" Alias "GlobalAlloc" (ByVal wFlags As Long, ByVal dwBytes As Long) As Long
Public Declare Function GlobalFree Lib "kernel32" Alias "GlobalFree" (ByVal hMem As Long) As Long
Public Declare Function GlobalLock Lib "kernel32" Alias "GlobalLock" (ByVal hMem As Long) As Long
Public Declare Function GlobalHandle Lib "kernel32" Alias "GlobalHandle" (wMem As Any) As Long
Public Declare Function GlobalReAlloc Lib "kernel32" Alias "GlobalReAlloc" (ByVal hMem As Long, ByVal dwBytes As Long, ByVal wFlags As Long) As Long
Public Declare Function GlobalSize Lib "kernel32" Alias "GlobalSize" (ByVal hMem As Long) As Long
Public Declare Function GlobalUnlock Lib "kernel32" Alias "GlobalUnlock" (ByVal hMem As Long) As Long
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|