Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
.NET and VFP LParameters
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00754321
Message ID:
00754435
Views:
21
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform