Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
COM Parameter problem
Message
De
10/12/2004 15:58:39
 
 
À
09/12/2004 16:06:28
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
00968127
Message ID:
00968410
Vues:
8
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform