Okay, I'm new to using the PI API.
I'm using VBA to access functions and points from PI.
I can use piut_ functions, as well as piar_ functions. But when I try to use a pipt_ function, I get an VBA error that says the sub or function isn't defined. What gives?
I'm using the same instantiation technique for all the functions....
Here's an example of my Sub
Declare Function pipt_pointid Lib "piapi32.dll" (ByVal pt&, ipt&) As Long
Sub GetPointValue()
Dim status as Long
pt = 58462
status = pipt_pointid(pt, ipt)
MsgBox(status)
MsgBox(ipt)
End Sub
It compiles fine, but doesn't recognize the function when I run it.