Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Pass objet by reference into a method
Message
 
 
À
08/09/2002 19:06:52
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00698095
Message ID:
00698270
Vues:
8
Hi!

In VFP, passing value by referense is organized by using "@" character, not using "&". Just try it.

Also, I see parameter is named "InterfaceStructureIndexPtr" that might be not the same as object.

>Hi
>
>I created my objets
>
>public oAcomba,oChaterIndex
>
>oAcomba = CREATEOBJECT("AcoX0116.AcombaX")
>oCharterIndex = CREATEOBJECT("AcoX0116.CharterKey")
>
>* note After this I tested some methods without Objet in parameter
>
>* The method firstKey that I need to use
>* int FirstKey(InterfaceStructureIndexPtr, int Index)
>
>
>iError= oAcomba.firstKey(oCharterIndex,1) && dont work by value
>
>iError= oAcomba.firstKey(&oCharterIndex,1) && dont work by reference
>
>the both return hex code error from the DLL
>
>Is it possible to pass objet by reference into a method(from a DLL ) ?
>
>thank you
>
>Roger
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
Répondre
Fil
Voir

Click here to load this message in the networking platform