I am not certain how a pointer to a float can be passed as the second argument but I would try:
The parameter types come from the lookup in the docs.Qt Code:
double outPos(0.0);To copy to clipboard, switch view to plain text mode
I am not certain how a pointer to a float can be passed as the second argument but I would try:
The parameter types come from the lookup in the docs.Qt Code:
double outPos(0.0);To copy to clipboard, switch view to plain text mode
Thanks, I appreciate the help.
I just tried your suggestion. It gives the same error as before.
QAxBase: Error calling IDispatch member GetPosition: Type mismatch in parameter
1
0
Press <RETURN> to close this window...
Last edited by NeuroC++; 4th March 2014 at 00:29. Reason: added thanks and smiley
How about this?
I don't really expect this to work, just covering the bases.Qt Code:
float outPos(0.0);To copy to clipboard, switch view to plain text mode
Yeah, if I do that it gives the "QVariant::QVariant(*void) is private" compile error. I've even tried casting the pointer to "outPos" into an int that I put into a QVariant which I then passed to the function. It compiled but still gave a type mismatch error at runtime.
Bookmarks