Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sending Object as parameter to a .NET DLL

Status
Not open for further replies.

jpcrest

Programmer
Mar 12, 2002
7
FR
Hi, I use some .NET dll to link my VFP applications to Web Services. it's works fine with standardss parameters, but not when I try to call a method with an object as parameter. Sample = create a custon object named myCustomer, add properties firstname, lastname, and call a dll with customer object as parameter : myclient.Addcustomer(myCustomer)
Thank you for your helpfull !
 
HI

YOu can pass on the object as 'THIS'

OR

oObject = THIS
Then you can use oObject as the parameter to pass on.

:)


____________________________________________
ramani - (Subramanian.G) :)
When you ask VFP questions, please add VFP version.
 
Thanks for your answer, but I got always the same error : OLE error code 0x80004002: No such interface supported.
I use VFP 7.0, and the .NET dll was made using C# and registered using Regsvcs.exe
If i call an other dll method which ask for an integer, no problems.
I can send you this test dll if needed.
Thanks for your help
 
I believe any object passed across the COM boundary must be a COM/OLE object... that is, it must be defined like:

DEFINE CLASS classname AS parentclass OLEPUBLIC
. . .
ENDDEFINE
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top