|
-
March 15th, 2001, 10:02 AM
#1
AddressOf
I am trying to send the Address of a Function to a COM DLL but as I run it I get an error saying invalid use of AddressOf.
Why is that?
how to overcome it?
FatMan
-
March 15th, 2001, 10:06 AM
#2
Re: AddressOf
Try the seemingly stupid solution as follows:
public Function LongFromLong(byval lIn as Long) as Long
LongFromLong = lIn
End Function
And then in your call, use:
LongFromLong(AddressOf foo)
HTH,
Duncan
-------------------------------------------------
Ex. Datis: Duncan Jones
Merrion Computing Ltd
http://www.merrioncomputing.com
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
|