Platform Invoke
Visual Basic
2
Posts
2
Posters
0
Views
1
Watching
-
hi everyone, data types of the parameters in the pinvoke function or sub should passed by ByVal if it is a IN parameter and ByRef if it is IN/OUT parameter? just let me know if i'm correct...thanks!
-
hi everyone, data types of the parameters in the pinvoke function or sub should passed by ByVal if it is a IN parameter and ByRef if it is IN/OUT parameter? just let me know if i'm correct...thanks!
Generally, yes. But what and how it's passed depends entirely on the parameter(s) of the function your calling. There are no hard and fast rules that work for every parameter. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome