Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Creating a C++ DLL to use with FoxPro
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00048334
Message ID:
00051141
Views:
52
>>I have found that a simple COM object takes about a sixth of the time it takes to instantiate a native VFP Custom class.
>
>Wow - are you sure about that??? VFP can't use Dual Interfaces when binding to COM
>objects so it has to use IDispatch with GETIDOFNAMES and Invoke() which are rather
>slow. I have to check that out, but I really find that hard to believe unless your
>VFP custom class has a stack of public interfaces.
>
>>Calling methods and accessing properties is straightforward and the marshalling that is done during automation calls makes it easy to pass strings between VFP and C++.
>
>No marshalling is required since COM objects are typically in-process.
>But yeah, COM allows you to create C++ classes that are accessible externally.
>
>The thing I hate about ATL is having to deal with the OLE type conversions
>and which of the 50 or so to use <s>... the subtle differences can really
>throw you for a loop especially when dealing with binary string data...
>
>+++ Rick ---

Also, VFP strings are not null terminated and this can be a "bad news" when using C/C++ functions on them.

Vlad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform