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.comICQ #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.