Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problems passing arrays...
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Visual FoxPro et .NET
Divers
Thread ID:
00613549
Message ID:
00613892
Vues:
20
Hi!

It will not show that you have a parameter till you compile the COM object in VFP7 and define procedure as function with explicit declaration of parameter types to create type library information. I'm not sure it is posisble to do in VFP7 with arrays passed by reference.

Just a suggestion:

You can instantiate a COM object as ANY COM object (using CreateObject() function or something like that instead of DIM someObject AS {COM object class)}. This will cause no checking for parameter till you call the object's method. You will not be able to use IntelliSense features in such case though.

HTH.

>Hi,
>
>I have a custom VFP COM server. This have a method (GetConfig(@laConfig))
>This method take a array and build other array with the config info. This server run for a normal windows VFP applications and need run for a ASP.NET application. I call this component from a VB.NET Component (DLL), and generate the stub for the com server(he force it). But i have this problems:
>
>1- The stub NOT show me that i have a parameter, the method is:
>
>PROCEDURE GetConfig
>lParameter laConfig
>END PROC
>
>This server need in several places return/set arrays. So, how fix it?
>
>2- In VB.NET,the arrays is zero-based (like Delphi, C++, etc...). But VFP have one based array.. Because i don't can run this code, i don't know if exist a problem with it (if yes, exist a workaround?)
>
>
>Thaks dude !
>
>NOTE:
>
>VFP 6.0 with SP5
>VS:NET Beta 2
>WinXP Professional
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform