|
-
August 8th, 2001, 05:48 AM
#1
Very urgent !!!
I need to pass pointer of variable and pointer of an Array do DLL (in C)
How cat I ger address of variable ot array in VB???
Thanks for any help.
-
August 8th, 2001, 05:56 AM
#2
Re: Very urgent !!!
To get an address you can use the undocumented function:
VarPtr(lVariable)
'or for an array
VarPtr(lArray(Lbound(lArray))
You can also pass a parameter by reference to a dll by not having "ByVal" in the DLL declare statement.
Hope this helps,
Duncan
-------------------------------------------------
Ex. Datis: Duncan Jones
Merrion Computing Ltd
http://www.merrioncomputing.com
Check out the new downloads - ImageMap.ocx is the VB control that emulates an HTML image map, EventVB.OCX for adding new events to your VB form and adding System Tray support simply, MCL Hotkey for implemenmting system-wide hotkeys in your application...all with source code included.
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
|