General information
Category:
COM/DCOM and OLE Automation
Title:
COM Parameter problem
I’m using a third party COM server dll to extend my VFP8 application.
One of its methods requires a structure as a parameter.
It appears that unlike with dlls, where you can trick VFP into substituting a character string for a structure in a DECLARE statement,
this can’t be done with a COM object method, where you can’t change the data type of a parameter within VFP, without causing an Error 11, "Function argument value, type, or count is invalid."
The required data structure contains a LONG and a SHORT.
I tried building up an integer value with both values concatenated in it, but when the value is big enough, it looks like it becomes a negative number
to VFP, and this too causes an Error 11.
Is there a way to do this?
Howard
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only