Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
COM Parameter problem
Message
From
09/12/2004 16:06:28
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
COM Parameter problem
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
00968127
Message ID:
00968127
Views:
43
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
Map
View

Click here to load this message in the networking platform