Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Pass objet by reference into a method
Message
From
09/09/2002 10:26:11
 
 
To
08/09/2002 19:06:52
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00698095
Message ID:
00698270
Views:
9
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.
Previous
Reply
Map
View

Click here to load this message in the networking platform