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

There are a couple of downloads here that might help:
API-Structures in VFP File #9557
struct.zip File #9267
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Previous
Reply
Map
View

Click here to load this message in the networking platform