Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
.NET and VFP LParameters
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00754321
Message ID:
00754435
Vues:
16
>In case anyone is interested, it looks like you cannot have a VFP COM object with a method signature like this:
>
>Function EventLogMsg as Void
>LParameters messageParm as String , waitState as Integer
>
>
>Because when you add the COM object reference to your Visual Studio .NET project, the IDE interprets the above as method EventLogMsg with no parameters at all.
>
>
>it must be like this:
>
>Function EventLogMsg ( messageParm as String , waitState as Integer )
>
>
>

Yeah, the type library VFP creates doesn't get generated properly when using LPARAMETERS. That's why .NET doesn't recognize it correctly. Even if it's documented, I still consider it a bug. It feels like one of those cases where someone probably pointed it out to the VFP team and they didn't have the time or motivation to fix it. Instead, they just added it to the docs, so now it's "by design". ;-)
-Paul

RCS Solutions, Inc.
Blog
Twitter
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform