Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Receiving an array from COM server
Message
From
05/10/2010 16:01:51
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows 7
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01484052
Message ID:
01484062
Views:
69
>I have a COM server that has a method that returns a pointer to float in a Variant.
>
>The pointer to float is actually an array of 32-bit floats.
>
>Is there some way that I can get access to that array in VFP?
>
>Thanks,
>Jim

You may need to use COMARRAY() to specify if it is zero based etc.

ie:
local array aMyArray[1] 
COMARRAY(oMyCOM,11)
oMyCOM.MyMethod(@aMyArray)
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform