Answer Posted / suresh
Any code you write to call a function pointer from Visual
Basic must be placed in a standard .BAS module ? you can't
put the code in a class module or attach it to a form. When
you call a declared function using the AddressOf keyword,
you should be aware of the following conditions:
? AddressOf can only be used immediately preceding an
argument in an argument list; that argument can be the name
of a user-defined sub, function, or property.
? The sub, function, or property you call with
AddressOf must be in the same project as the related
declarations and procedures.
? You can only use AddressOf with user-defined subs,
functions, or properties ? you cannot use it with external
functions declared with the Declare statement, or with
functions referenced from type libraries.
? You can pass a function pointer to an argument that
is typed As Any or As Long in a declared Sub, Function, or
user-defined type definition.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
Explain the usage of Web Browser Control?
Difference between Tabletype and Snapshot?
What is OLEDB?
Types of Resultsets.
I'm getting error message "Reserved Error [-nnnn] ("There is no message for this error")" from Jet Engine 2.0.Why?
How can you Add API functions to your Application?
what is the Property used to add a menus at runtime?
It is possible to access Text (x.txt) files? Explain.
What is instantiating?
What is the use of progress Bar Control?
What are the different procedures associated with the object?
How would you access objects created in ActiveX Exe and ActiveX D1T ?
How do I implement an incremental search in list/dir/combo/file boxes?
How do I make my applications screen-resolution independent?
what are the Differences between Recordset and Resultsets?