General information
Category:
Windows API functions
>>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only